From 3f91e7a015a5c2ba545fbfa741aa5b754d3df0da Mon Sep 17 00:00:00 2001 From: JMGaljaard Date: Mon, 26 Sep 2022 11:11:23 +0200 Subject: [PATCH] Undo debugging changes --- fltk/__main__.py | 6 ------ fltk/launch.py | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/fltk/__main__.py b/fltk/__main__.py index 8c03c460..3e35c879 100644 --- a/fltk/__main__.py +++ b/fltk/__main__.py @@ -76,12 +76,6 @@ def main(): _save_get(args, 'prefix'), args, distributed_config) - try: - pass - except Exception as e: - print(f"Failed with reason: {e}") - parser.print_help() - sys.exit(1) sys.exit(0) diff --git a/fltk/launch.py b/fltk/launch.py index dfe030af..ab9eb628 100644 --- a/fltk/launch.py +++ b/fltk/launch.py @@ -345,9 +345,8 @@ def launch_cluster(arg_path: Path, conf_path: Path, rank: Rank, nic: Optional[NI for replication, experiment_seed in enumerate(conf.execution_config.reproducibility.seeds): logging.info(f"Starting with experiment replication: {replication} with seed: {experiment_seed}") init_reproducibility(conf.execution_config) - exec_orchestrator(args=args, conf=conf, replication=replication) try: - pass + exec_orchestrator(args=args, conf=conf, replication=replication) except Exception as e: logging.info(f"Execution of replication {replication} with seed {experiment_seed} failed." f"Reason: {e}")