diff --git a/easybuild/main.py b/easybuild/main.py index 24f994da14..1a9aa736a7 100644 --- a/easybuild/main.py +++ b/easybuild/main.py @@ -69,7 +69,7 @@ from easybuild.tools.github import add_pr_labels, install_github_token, list_prs, merge_pr, new_branch_github, new_pr from easybuild.tools.github import new_pr_from_branch from easybuild.tools.github import sync_branch_with_develop, sync_pr_with_develop, update_branch, update_pr -from easybuild.tools.hooks import BUILD_AND_INSTALL_LOOP, PRE_PREF, POST_PREF, CRASH, START, END, CANCEL, FAIL +from easybuild.tools.hooks import BUILD_AND_INSTALL_LOOP, PRE_PREF, POST_PREF, START, END, CANCEL, FAIL from easybuild.tools.hooks import load_hooks, run_hook from easybuild.tools.modules import modules_tool from easybuild.tools.options import opts_dict_to_eb_opts, set_up_configuration, use_color @@ -760,6 +760,3 @@ def prepare_main(args=None, logfile=None, testing=None): except KeyboardInterrupt as err: run_hook(CANCEL, hooks, args=[err]) print_error("Cancelled by user: %s" % err) - except Exception as err: - run_hook(CRASH, hooks, args=[err]) - print_error("Encountered an unrecoverable error: %s" % err) diff --git a/easybuild/tools/hooks.py b/easybuild/tools/hooks.py index 7a104d6277..785e255171 100644 --- a/easybuild/tools/hooks.py +++ b/easybuild/tools/hooks.py @@ -67,7 +67,6 @@ END = 'end' CANCEL = 'cancel' -CRASH = 'crash' FAIL = 'fail' PRE_PREF = 'pre_' @@ -106,7 +105,6 @@ POST_PREF + BUILD_AND_INSTALL_LOOP, END, CANCEL, - CRASH, FAIL, ] KNOWN_HOOKS = [h + HOOK_SUFF for h in HOOK_NAMES] diff --git a/test/framework/options.py b/test/framework/options.py index 2ef6488d16..545d18cdda 100644 --- a/test/framework/options.py +++ b/test/framework/options.py @@ -722,7 +722,6 @@ def test_avail_hooks(self): " post_build_and_install_loop_hook", " end_hook", " cancel_hook", - " crash_hook", " fail_hook", '', ])