UPD: try to make useful test stuff.

This commit is contained in:
2019-03-15 17:35:16 +01:00
parent 2dce52cb25
commit 1c3e5bf761
6 changed files with 130 additions and 2 deletions

View File

@@ -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']: