small fix to coresendmsg and client disconnects no longer log as an exception

This commit is contained in:
Blake J. Harnden 2018-03-16 13:10:34 -07:00
parent d46aaa1005
commit bc1ef88f82
2 changed files with 8 additions and 5 deletions

View file

@ -506,7 +506,10 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler):
while True:
try:
message = self.receive_message()
except (IOError, EOFError):
except EOFError:
logger.info("client disconnected")
break
except IOError:
logger.exception("error receiving message")
break