From bed6f6db5e69bc3a4e52b002bfe2a4e2ea91ccf8 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 13 Mar 2015 13:30:45 -0400 Subject: [PATCH] Fix flake8 warnings --- awx/main/management/commands/run_callback_receiver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/management/commands/run_callback_receiver.py b/awx/main/management/commands/run_callback_receiver.py index ad102a5245..595e1f850e 100644 --- a/awx/main/management/commands/run_callback_receiver.py +++ b/awx/main/management/commands/run_callback_receiver.py @@ -103,10 +103,10 @@ class CallbackReceiver(object): for queue_actual in queue_order: try: worker_actual = worker_queues[queue_actual] - worker_queues[queue_actual][1].put(message, block=True, timeout=2) - worker_queues[queue_actual][0] += 1 + worker_actual[1].put(message, block=True, timeout=2) + worker_actual[0] += 1 return queue_actual - except Exception, e: + except Exception: logger.warn("Could not write to queue %s" % preferred_queue) continue return None