[CLI] Older python compat. (#23933)

master
Nick Brassel 2024-06-16 19:53:03 +10:00 committed by GitHub
parent ad82c4703a
commit 7ac1a34a34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ def maybe_exit(rc):
if maybe_exit_should_exit: if maybe_exit_should_exit:
sys.exit(rc) sys.exit(rc)
if maybe_exit_reraise: if maybe_exit_reraise:
e = sys.exception() e = sys.exc_info()[1]
if e: if e:
raise e raise e