Program no longer terminates if .env file is not present (need for testing)

This commit is contained in:
2022-07-13 15:42:20 +02:00
parent 5c0de10446
commit 33fe0e0d79
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ public class RecipeInformation {
private final OkHttpClient client;
public RecipeInformation(){
dotenv = Dotenv.load();
dotenv = Dotenv.configure().ignoreIfMissing().ignoreIfMalformed().load();
client = new OkHttpClient();
}