We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 494f0c7 commit 64a775bCopy full SHA for 64a775b
CPAC/_entrypoints/run.py
@@ -786,10 +786,9 @@ def run_main():
786
# fillna
787
bids_table["ses"] = bids_table["ses"].fillna("None")
788
grouped_tab = bids_table.groupby(["sub", "ses"])
789
- except Exception as e: # TODO: raise exception
790
- WFLOGGER.warning("Could not create bids table: %s", e)
791
- print("Could not create bids table: %s", e)
792
- sys.exit(1)
+ except Exception as e:
+ msg = f"Could not create bids table: {e}"
+ raise ValueError(msg) from e
793
# else:
794
# sub_list = load_cpac_data_config(
795
# args.data_config_file, args.participant_label, args.aws_input_creds
0 commit comments