Latest version

This commit is contained in:
Mihaly Varadi 2019-10-07 14:49:35 +01:00
parent 7a60569631
commit 410ba6c4af
4 changed files with 15 additions and 5 deletions

View file

@ -87,8 +87,8 @@ class Validator(object):
with open(path, "r") as json_file:
try:
return json.load(json_file)
except json.decoder.JSONDecodeError as err:
self.error_log = "JSON error: %s" % err
except:
self.error_log = "JSON error: %s" % path
return None
except IOError as ioerr:
self.error_log = "File error: %s" % ioerr