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

Compare commits

...

2 Commits

Author SHA1 Message Date
patricksurry
3dabeaeb3f
Merge f3d2eb2f22 into cf03901114 2023-09-12 16:55:01 -04:00
Patrick Surry
f3d2eb2f22 fixes https://github.com/mnaberez/py65/issues/45 2023-07-26 10:12:58 -04:00

View File

@ -153,7 +153,8 @@ 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:
@ -164,7 +165,7 @@ class Monitor(cmd.Cmd):
error = ''.join(traceback.format_exception(e))
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.