Compare commits

...

3 Commits

Author SHA1 Message Date
Mike Naberezny 85ed46fd68 Fix crash formatting traceback 2024-04-12 11:14:09 -07:00
Mike Naberezny 2b837bbd4f Avoid Node.js 16 deprecation warning on GitHub Actions 2024-04-12 11:13:00 -07:00
Mike Naberezny 6ccdbe9c07 Update copyright year to 2024 2024-04-12 11:11:16 -07:00
3 changed files with 13 additions and 8 deletions

View File

@ -15,7 +15,7 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Show Python version
run: python -V
@ -33,7 +33,12 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
# does not work with actions/checkout@v4:
# /usr/bin/docker exec 289170dbefc90d2ba94a09f3dcb70c42c1e1b29a5e877cd533b26ebf73ca82fa sh -c "cat /etc/*release | grep ^ID"
# /__e/node20/bin/node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /__e/node20/bin/node)
# /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
# /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /__e/node20/bin/node)
- name: Show Python version
run: python -V
@ -51,7 +56,7 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Show Python version
run: python -V
@ -72,10 +77,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

View File

@ -1,6 +1,6 @@
BSD 3-Clause License
Copyright (c) 2008-2018, Mike Naberezny and contributors.
Copyright (c) 2008-2024, Mike Naberezny and contributors.
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@ -163,8 +163,8 @@ class Monitor(cmd.Cmd):
result = cmd.Cmd.onecmd(self, line)
except KeyboardInterrupt:
self._output("Interrupt")
except Exception as e:
error = ''.join(traceback.format_exception(e))
except Exception:
error = ''.join(traceback.format_exception(*sys.exc_info()))
self._output(error)
if not line.startswith("quit"):