From 5c0599e93ab00c491e657686863cd23c561b6b13 Mon Sep 17 00:00:00 2001 From: Qingmin Duanmu Date: Mon, 23 Dec 2024 11:08:37 +0800 Subject: [PATCH] fix: sys.exit with errorcode in handle_exceptions --- trestlebot/cli/options/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trestlebot/cli/options/common.py b/trestlebot/cli/options/common.py index f9b633ac..e8399fb2 100644 --- a/trestlebot/cli/options/common.py +++ b/trestlebot/cli/options/common.py @@ -32,7 +32,7 @@ def wrapper(*args: Sequence[Any], **kwargs: Dict[Any, Any]) -> Any: traceback_str = traceback.format_exc() logger.error(f"Trestle-bot Error: {str(ex)}") logger.debug(traceback_str) - return ERROR_EXIT_CODE + sys.exit(ERROR_EXIT_CODE) return wrapper