[CLI] Older python compat. (#23933)

This commit is contained in:
Nick Brassel authored and GitHub committed 2024-06-16 19:53:03 +10:00
1 parent ad82c4703a
commit 7ac1a34a34
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ def maybe_exit(rc):
if maybe_exit_should_exit:
sys.exit(rc)
if maybe_exit_reraise:
e = sys.exception()
e = sys.exc_info()[1]
if e:
raise e