Skip to content

Commit

Permalink
fixes mnaberez#45
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Surry committed Jul 26, 2023
1 parent a01a227 commit f678f5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py65/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,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:
Expand All @@ -181,7 +182,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.
Expand Down

0 comments on commit f678f5f

Please sign in to comment.