diff --git a/src/pinnwand/configuration.py b/src/pinnwand/configuration.py index bbbd85b..aa897b0 100644 --- a/src/pinnwand/configuration.py +++ b/src/pinnwand/configuration.py @@ -125,12 +125,12 @@ def load_environment(self, dotenv_file_path: Optional[str] = None): key = key[len(prefix) :] key = key.lower() try: - value = ast.literal_eval(value) - setattr(self, f"_{key}", value) + parsed_value = ast.literal_eval(value) + setattr(self, f"_{key}", parsed_value) except (ValueError, SyntaxError): # When `ast.literal_eval` can't parse the value into another # type we take it at string value - pass + setattr(self, f"_{key}", value) class ConfigurationProvider: