Skip to content

Commit

Permalink
update lib and ignore malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
katerina20 committed Jun 11, 2024
1 parent e01c1ca commit 5aabbf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static void setEnvIfExists(Consumer<String> setter, String envKey) {
private static Dotenv getDotenv() {
if (dotenv == null) {
try {
dotenv = Dotenv.configure().ignoreIfMissing().load();
dotenv = Dotenv.configure().ignoreIfMissing().ignoreIfMalformed().load();
} catch (IllegalStateException e) {
if (e.getMessage() != null && e.getMessage().contains("Duplicate key")) {
throw new ExitCodeExceptionMapper.ValidationException(RESOURCE_BUNDLE.getString("error.duplicate_environment_variable"), e);
Expand Down
2 changes: 1 addition & 1 deletion versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ version.junit.jupiter=5.10.2

version.javax.activation..activation=1.1.1

version.io.github.cdimascio..dotenv-java=2.3.2
version.io.github.cdimascio..dotenv-java=3.0.0

version.info.picocli..picocli-codegen=4.7.6

Expand Down

0 comments on commit 5aabbf8

Please sign in to comment.