Split socket error to nr
This commit is contained in:
1 parent
cfb246fa84
commit
22e922e860
1 file changed
+1
@@ -136,6 +136,7 @@ if __name__ == '__main__':
|
|||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
# log when socket receives SIGINT, but continue.
|
# log when socket receives SIGINT, but continue.
|
||||||
# previous code would have skipped over other types of IO errors too.
|
# previous code would have skipped over other types of IO errors too.
|
||||||
|
nr, msg = e
|
||||||
if nr != 4:
|
if nr != 4:
|
||||||
try:
|
try:
|
||||||
l.log.critical(traceback.format_exc())
|
l.log.critical(traceback.format_exc())
|
||||||
|
|||||||
Reference in new issue
Block a user