Skip to content
Snippets Groups Projects
Commit a2c10973 authored by Lea Reuter's avatar Lea Reuter
Browse files

Merge branch 'config_fix' into 'master'

Fix error message in read_json

See merge request !43
parents 4e2e7dfc 3a55f24a
Branches
No related tags found
1 merge request!43Fix error message in read_json
......@@ -167,7 +167,7 @@ class GitConfigPull(object):
scripts = result[json_key].get(cls.script_key, list())
return configs, scripts
except (IOError, KeyError) as err:
if not os.path.exists(json_file):
if not os.path.exists(json_file.name):
raise IOError("Could not read file '%s'." % json_file)
else:
raise KeyError("Error when parsing '%s': %s." % (json_file, err))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment