From f3d2eb2f22c6f134d563e7a2cfc72439f20fc36e Mon Sep 17 00:00:00 2001 From: Patrick Surry Date: Wed, 26 Jul 2023 10:12:58 -0400 Subject: [PATCH] fixes https://github.com/mnaberez/py65/issues/45 --- py65/monitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py65/monitor.py b/py65/monitor.py index 5726281..aa98489 100644 --- a/py65/monitor.py +++ b/py65/monitor.py @@ -153,7 +153,8 @@ def _usage(self): 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 @@ def onecmd(self, line): 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.