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:
parent
0e327750a0
commit
205dcdf636
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue