UPD: try to make useful test stuff.

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

No files matched your search

+5 -2
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']: