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

Compare commits

...

2 Commits

Author SHA1 Message Date
patricksurry
fc3ecd9ebf
Merge f3d2eb2f22 into 85ed46fd68 2024-04-12 11:48:17 -07:00
Patrick Surry
f3d2eb2f22 fixes https://github.com/mnaberez/py65/issues/45 2023-07-26 10:12:58 -04:00

View File

@ -156,7 +156,8 @@ class Monitor(cmd.Cmd):
self._output(usage) self._output(usage)
def onecmd(self, line): def onecmd(self, line):
line = self._preprocess_line(line) if line:
line = self._preprocess_line(line)
result = None result = None
try: try:
@ -167,7 +168,7 @@ class Monitor(cmd.Cmd):
error = ''.join(traceback.format_exception(*sys.exc_info())) error = ''.join(traceback.format_exception(*sys.exc_info()))
self._output(error) self._output(error)
if not line.startswith("quit"): if line and not line.startswith("quit"):
self._output_mpu_status() self._output_mpu_status()
# Switch back to the previous input mode. # Switch back to the previous input mode.