Commit 34e912bb authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Fix edge case where config file never declared

This commit fixes an edge case in which the config filename is never
declared if the config is set but the file does not exist on disk.
parent 4c8dd856
......@@ -28,8 +28,7 @@ class Settings(object):
# If a readable config file was provided, use that instead
if config:
if os.path.isfile(config):
if config and os.path.isfile(config):
self.filename = config
else:
# Default config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment