Merge branch 'master' of gitlab.com:wolutator/modbusmaster

This commit is contained in:
2019-07-18 13:57:20 +01:00
7 changed files with 6 additions and 271 deletions

View File

@ -31,6 +31,12 @@ class CmdInterpreter(cmd.Cmd):
self.splitterRe = re.compile('\s+')
self.logger = logging.getLogger('CmdInterpreter')
def onecmd(self, line):
try:
return self.onecmd(line)
except Exception as e:
msg = 'Caught exception in cmd "{0}": {1!s}'.format(line, e)
def __print(self, text):
self.stdout.write(text)