1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-10-31 22:06:12 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
patricksurry
fc3ecd9ebf
Merge f3d2eb2f22 into 85ed46fd68 2024-04-12 11:48:17 -07:00
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
Patrick Surry
f3d2eb2f22 fixes https://github.com/mnaberez/py65/issues/45 2023-07-26 10:12:58 -04:00
3 changed files with 16 additions and 10 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
@ -34,6 +34,11 @@ jobs:
steps:
- 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

@ -156,18 +156,19 @@ class Monitor(cmd.Cmd):
self._output(usage)
def onecmd(self, line):
line = self._preprocess_line(line)
if line:
line = self._preprocess_line(line)
result = None
try:
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"):
if line and not line.startswith("quit"):
self._output_mpu_status()
# Switch back to the previous input mode.