Skip to content

Commit a21e670

Browse files
author
Alexey Tsitkin
committed
fix bug
1 parent 2cd090d commit a21e670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eb_sqs/worker/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def process_messages(self, queues, worker, static_queues):
7979
})
8080

8181
self.delete_messages(queue, msg_entries)
82-
except ClientError as ex:
83-
error_code = ex.response.get('Error', {}).get('Code', None)
82+
except ClientError as exc:
83+
error_code = exc.response.get('Error', {}).get('Code', None)
8484
if error_code == 'AWS.SimpleQueueService.NonExistentQueue' and queue not in static_queues:
8585
logger.debug('[django-eb-sqs] Queue was already deleted {}: {}'.format(queue.url, exc), exc_info=1)
8686
else:

0 commit comments

Comments
 (0)