Skip to content

Commit

Permalink
fix for None input
Browse files Browse the repository at this point in the history
  • Loading branch information
avikdatta committed Dec 4, 2023
1 parent e0b32f6 commit 23de041
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion igf_airflow/utils/dag34_cellranger_multi_scRNA_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ def configure_cellranger_aggr_run(
ti.xcom_pull(
task_ids=xcom_pull_task_ids,
key=xcom_pull_task_key)
if len(cellranger_output_dict) == 0:
if cellranger_output_dict is None or \
(isinstance(cellranger_output_dict, dict) and len(cellranger_output_dict)) == 0:
raise ValueError(f"No cellranger output found")
elif len(cellranger_output_dict) == 1:
raise ValueError(f"Single cellranger output found. Can't merge it!")
Expand Down

0 comments on commit 23de041

Please sign in to comment.