1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-09 10:29:35 +00:00
This commit is contained in:
Patrick Surry 2023-07-26 10:10:30 -04:00
parent a01a2271ae
commit f678f5f465

View File

@ -170,7 +170,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:
@ -181,7 +182,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.