Skip to content

Commit

Permalink
Add missing and malformed piface warning #515
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Aug 23, 2024
1 parent d9ea2ad commit b29494c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion looper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,14 +737,23 @@ def determine_pipeline_type(piface_path: str, looper_config_path: str):

if piface_path is None:
return None, None
piface_path = expandpath(piface_path)
try:
piface_path = expandpath(piface_path)
except TypeError as e:
_LOGGER.warning(
f"Pipeline interface not found at given path: {piface_path}. Type Error: "
+ str(e)
)
return None, None

if not os.path.isabs(piface_path):
piface_path = os.path.realpath(
os.path.join(os.path.dirname(looper_config_path), piface_path)
)
try:
piface_dict = load_yaml(piface_path)
except FileNotFoundError:
_LOGGER.warning(f"Pipeline interface not found at given path: {piface_path}")
return None, None

pipeline_types = []
Expand Down Expand Up @@ -836,6 +845,7 @@ def read_looper_config_file(looper_config_path: str) -> dict:
for k, v in return_dict.items():
if k == SAMPLE_PL_ARG or k == PROJECT_PL_ARG:
# Pipeline interfaces are resolved at a later point. Do it there only to maintain consistency. #474

pass
if isinstance(v, str):
v = expandpath(v)
Expand Down

0 comments on commit b29494c

Please sign in to comment.