Merge pull request #901 from markwal/handleErrorsShortform
Only eat two characters when the error indicator is '!!'
This commit is contained in:
commit
7263fb74a9
1 changed files with 1 additions and 1 deletions
|
|
@ -1287,7 +1287,7 @@ class MachineCom(object):
|
|||
self._lastCommError = line[6:] if line.startswith("Error:") else line[2:]
|
||||
pass
|
||||
elif not self.isError():
|
||||
self._errorValue = line[6:]
|
||||
self._errorValue = line[6:] if line.startswith("Error:") else line[2:]
|
||||
self._changeState(self.STATE_ERROR)
|
||||
eventManager().fire(Events.ERROR, {"error": self.getErrorString()})
|
||||
return line
|
||||
|
|
|
|||
Loading…
Reference in a new issue