Permalink
Browse files

Handle another exception most likely caused by a disconnected printer

  • Loading branch information...
1 parent 1dff073 commit ba759e9264d3c329dffff4b17ad4a8e66717932b @iXce iXce committed Mar 16, 2012
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]

0 comments on commit ba759e9

Please sign in to comment.