Skip to content

Commit

Permalink
fix: sys.exit with errorcode in handle_exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
qduanmu committed Dec 23, 2024
1 parent d701aab commit 5c0599e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trestlebot/cli/options/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5c0599e

Please sign in to comment.