diff --git a/my_project_name/config.py b/my_project_name/config.py index 863204a..c7d44a0 100644 --- a/my_project_name/config.py +++ b/my_project_name/config.py @@ -112,7 +112,7 @@ class Config(object): # If at any point we don't get our expected option... if config is None: # Raise an error if it was required - if required or not default: + if required and not default: raise ConfigError(f"Config option {'.'.join(path)} is required") # or return the default value