mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-07 03:30:06 +01:00
bugifx
This commit is contained in:
@@ -28,9 +28,10 @@ class Frontend(object):
|
||||
)
|
||||
elif path_to_yaml:
|
||||
try:
|
||||
assert os.path.exists(self._path)
|
||||
with open(path_to_yaml, 'r') as f:
|
||||
self._data = yaml.load(f, Loader=yaml.Loader)
|
||||
except AssertionError:
|
||||
except (AssertionError, FileNotFoundError):
|
||||
raise ValueError(
|
||||
'Cannot find specified path to YAML file. Make sure the machine file exists.'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user