This commit is contained in:
JanLJL
2019-08-30 13:53:45 +02:00
parent 87e5d55940
commit da0a2455e2

View File

@@ -28,7 +28,7 @@ class Frontend(object):
)
elif path_to_yaml:
try:
assert os.path.exists(self._path)
assert os.path.exists(path_to_yaml)
with open(path_to_yaml, 'r') as f:
self._data = yaml.load(f, Loader=yaml.Loader)
except (AssertionError, FileNotFoundError):