diff --git a/scripts/abi_check.py b/scripts/abi_check.py index e5d5c99c3..f837f7a79 100755 --- a/scripts/abi_check.py +++ b/scripts/abi_check.py @@ -393,7 +393,9 @@ def run_main(): abi_check = AbiChecker(old_version, new_version, configuration) return_code = abi_check.check_for_abi_changes() sys.exit(return_code) - except Exception: + except Exception: # pylint: disable=broad-except + # Print the backtrace and exit explicitly so as to exit with + # status 2, not 1. traceback.print_exc() sys.exit(2)