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,9 +28,8 @@ class Settings(object):
# If a readable config file was provided, use that instead
if config:
if os.path.isfile(config):
self.filename = config
if config and os.path.isfile(config):
self.filename = config
# Default config
default_config = "/home/gettor/gettor/gettor.conf.json"
Supports Markdown
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