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

Minor change

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