diff options
| author | Nick Brassel <nick@tzarc.org> | 2024-06-16 19:53:03 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-16 19:53:03 +1000 |
| commit | 7ac1a34a346aed7118018f4f562a1cfdd651a087 (patch) | |
| tree | e214280913fa3d94c86d0e8893834c45c6772928 /lib/python | |
| parent | ad82c4703a4a2e0e5c8d266b2df9e89836b76587 (diff) | |
[CLI] Older python compat. (#23933)
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/qmk/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/util.py b/lib/python/qmk/util.py index 0145ab1354..b73fab89d1 100644 --- a/lib/python/qmk/util.py +++ b/lib/python/qmk/util.py | |||
| @@ -15,7 +15,7 @@ def maybe_exit(rc): | |||
| 15 | if maybe_exit_should_exit: | 15 | if maybe_exit_should_exit: |
| 16 | sys.exit(rc) | 16 | sys.exit(rc) |
| 17 | if maybe_exit_reraise: | 17 | if maybe_exit_reraise: |
| 18 | e = sys.exception() | 18 | e = sys.exc_info()[1] |
| 19 | if e: | 19 | if e: |
| 20 | raise e | 20 | raise e |
| 21 | 21 | ||
