[F] Fix config file argument not being used

This commit is contained in:
Bailey Kasin 2023-08-25 21:14:00 -07:00
parent b353cb7247
commit 8182224dc7
No known key found for this signature in database
GPG key ID: AE53A329D7F3716E

View file

@ -27,7 +27,7 @@ def check_config(path) -> Config:
""" """
if path.is_file(): if path.is_file():
try: try:
return Config.from_dict(json.loads(CONFIG_PATH.read_text('utf-8'))) return Config.from_dict(json.loads(path.read_text('utf-8')))
except KeyError: except KeyError:
return create_config() return create_config()