1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-05-31 12:41:31 +00:00
This commit is contained in:
patricksurry 2024-04-12 11:48:17 -07:00 committed by GitHub
commit fc3ecd9ebf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,7 +156,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:
@ -167,7 +168,7 @@ class Monitor(cmd.Cmd):
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.