Commit 32e97d32 authored by Guillaume Seguin's avatar Guillaume Seguin

Minor change

parent ab3e3fa1
......@@ -584,7 +584,7 @@ class printcore():
if self.printer_tcp: self.printer.flush()
self.writefailures = 0
except socket.error as e:
if e is None:
if e.errno is None:
self.logError("Can't write to printer (disconnected ?):" +
"\n" + traceback.format_exc())
else:
......
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