Skip to content

Commit

Permalink
Allow falsy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
I159 committed Jun 16, 2020
1 parent ddffe32 commit 88e4dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buddy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def wrapper(self):
except KeyError:
raise ConfigurationError(setting_func.var_name, setting_func.__name__)
else:
if not res and setting_func.var_name not in self._defaults:
if res is None:
raise ConfigurationError(
setting_func.var_name, setting_func.__name__
)
Expand Down

0 comments on commit 88e4dfb

Please sign in to comment.