From a3dc399c01681bc39619961502c1d3a1c7dfe6ae Mon Sep 17 00:00:00 2001 From: Gaspard Goupy <gaspard.goupy@univ-lille.fr> Date: Thu, 20 Jul 2023 15:56:31 +0200 Subject: [PATCH] Add Error handler --- scripts/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/run.py b/scripts/run.py index cf71cf6..2e50907 100644 --- a/scripts/run.py +++ b/scripts/run.py @@ -69,4 +69,7 @@ if __name__ == "__main__": if os.path.isdir(output_dir): raise RuntimeError("Output directory already exists. Aborting...") # Start run: vroum vroum - run(input_dir, config_path_csnn, config_path_readout, output_dir, args.seed) \ No newline at end of file + try: + run(input_dir, config_path_csnn, config_path_readout, output_dir, args.seed) + except Exception as e: + print("RUNNING ERROR:\n", e.output) \ No newline at end of file -- GitLab