return an empty layer if no config is available

This commit is contained in:
Jakob Ketterl 2021-04-17 23:56:32 +02:00
parent b4c2923dd2
commit dae32f2e95

View File

@ -16,6 +16,7 @@ class ClassicConfig(PropertyReadOnly):
return ClassicConfig._loadPythonFile(file) return ClassicConfig._loadPythonFile(file)
except FileNotFoundError: except FileNotFoundError:
pass pass
return PropertyLayer()
@staticmethod @staticmethod
def _toLayer(dictionary: dict): def _toLayer(dictionary: dict):