From b66d16da5d0241b1c0437dd5cc73cc966a13e373 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 26 Sep 2024 12:38:59 +0200 Subject: [PATCH] fix: cli helper wrapper (oversight #27753) --- frappe/utils/bench_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/bench_helper.py b/frappe/utils/bench_helper.py index a4bc89b0d6..c95ded3dae 100644 --- a/frappe/utils/bench_helper.py +++ b/frappe/utils/bench_helper.py @@ -45,7 +45,7 @@ def FrappeClickWrapper(cls, handler): def invoke(self, ctx): try: return super().invoke(ctx) - except click.ClickException as e: + except (click.ClickException, click.exceptions.Exit, click.exceptions.Abort) as e: raise e except Exception as exc: # call the handler