Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle another exception most likely caused by a disconnected printer

  • Loading branch information...
commit ba759e9264d3c329dffff4b17ad4a8e66717932b 1 parent 1dff073
@iXce iXce authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  printcore.py
View
3  printcore.py
@@ -104,6 +104,9 @@ def _listen(self):
except SerialException, e:
print "Can't read from printer (disconnected?)."
break
+ except OSError, e:
+ print "Can't read from printer (disconnected?)."
+ break
if(len(line)>1):
self.log+=[line]
Please sign in to comment.
Something went wrong with that request. Please try again.