Skip to content
Snippets Groups Projects
Commit f2ec1493 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(abc): try-except to find source type

parent e5f0a302
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,12 @@ class ParametersABC(ABC):
Returns instance from a yaml filename or stdin
"""
is_buffer = True
if Path(source).exists():
is_buffer = False
try:
if Path(source).exists():
is_buffer = False
except Exception:
pass
if is_buffer:
params = safe_load(source)
with open(source) as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment