mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Handle any exception that could come from sending a packet to a client
This commit is contained in:
@@ -132,7 +132,11 @@ def notification_handler(server):
|
||||
}
|
||||
for session_id, socket in list(server.sockets.iteritems()):
|
||||
if session_id in valid_sockets:
|
||||
socket.send_packet(packet)
|
||||
try:
|
||||
socket.send_packet(packet)
|
||||
except Exception, e:
|
||||
logger.error("Error sending client packet to %s: %s" % (str(session_id), str(packet)))
|
||||
logger.error("Error was: " + str(e))
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user