check_compliance: fix broken format() in exception handler

Likely an accident when commit 288ae28c13 moved the script to the main
repo. Stayed unnoticed because this handler rarely ever runs.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-01-12 11:57:21 -08:00 committed by Anas Nashif
parent 0e327750a0
commit 205dcdf636

View file

@ -1086,7 +1086,8 @@ def main():
except BaseException:
# Catch BaseException instead of Exception to include stuff like
# SystemExit (raised by sys.exit())
print(format(__file__, traceback.format_exc()))
print("Python exception in `{}`:\n\n"
"```\n{}\n```".format(__file__, traceback.format_exc()))
raise