Split socket error to nr

This commit is contained in:
Ruud
2014-03-03 23:34:49 +01:00
parent cfb246fa84
commit 22e922e860
+1
View File
@@ -136,6 +136,7 @@ if __name__ == '__main__':
except socket.error as e:
# log when socket receives SIGINT, but continue.
# previous code would have skipped over other types of IO errors too.
nr, msg = e
if nr != 4:
try:
l.log.critical(traceback.format_exc())