Split socket error to nr
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user