Handle another exception most likely caused by a disconnected printer

master
Guillaume Seguin 2012-03-16 04:37:43 +01:00
parent 1dff073c86
commit ba759e9264
1 changed files with 3 additions and 0 deletions

View File

@ -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]