Commit ba759e92 authored by Guillaume Seguin's avatar Guillaume Seguin

Handle another exception most likely caused by a disconnected printer

parent 1dff073c
...@@ -104,6 +104,9 @@ class printcore(): ...@@ -104,6 +104,9 @@ class printcore():
except SerialException, e: except SerialException, e:
print "Can't read from printer (disconnected?)." print "Can't read from printer (disconnected?)."
break break
except OSError, e:
print "Can't read from printer (disconnected?)."
break
if(len(line)>1): if(len(line)>1):
self.log+=[line] self.log+=[line]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment