Skip to content

Commit

Permalink
Fix bug with configuration utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jan 10, 2024
1 parent 13367fb commit 99133cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smarts/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_setting(
value = self._config[section][option]
except (configparser.NoSectionError, KeyError) as exc:
if default is _UNSET:
if value := _config_defaults.get((section, option)):
if (value := _config_defaults.get((section, option), _UNSET)) != _UNSET:
return value
raise EnvironmentError(
f"Setting `${env_variable}` cannot be found in environment or configuration."
Expand Down

0 comments on commit 99133cb

Please sign in to comment.