Handle another exception most likely caused by a disconnected printer
parent
1dff073c86
commit
ba759e9264
|
@ -104,6 +104,9 @@ class printcore():
|
|||
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]
|
||||
|
|
Loading…
Reference in New Issue