mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Handle any exception that could come from sending a packet to a client
This commit is contained in:
parent
0535d1c8c9
commit
5a401c31aa
@ -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):
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user