UPD: try to make useful test stuff.
This commit is contained in:
@@ -98,8 +98,11 @@ class ModuleConfig(object):
|
||||
|
||||
self._modules = dict()
|
||||
|
||||
with open(path, 'r') as f:
|
||||
data = json.load(f)
|
||||
if os.path.exists(path):
|
||||
with open(path, 'r') as f:
|
||||
data = json.load(f)
|
||||
else:
|
||||
data = dict()
|
||||
|
||||
if 'modules' in data:
|
||||
for meta_dict in data['modules']:
|
||||
|
||||
Reference in New Issue
Block a user