Handle errors is toolbit json more gracefully

This commit is contained in:
sliptonic
2020-11-14 11:06:02 -06:00
parent aa59e98b37
commit 472cb83ae7
2 changed files with 14 additions and 8 deletions

View File

@@ -367,6 +367,7 @@ class ToolBit(object):
def Declaration(path):
PathLog.track(path)
with open(path, 'r') as fp:
return json.load(fp)