Skip to content

Commit d034508

Browse files
author
Alexey Tsitkin
committed
temporary commit
1 parent ef859db commit d034508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eb_sqs/worker/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def process_message(self, msg, worker):
102102
# type: (Message, Worker) -> None
103103
logger.debug('[django-eb-sqs] Read message {}'.format(msg.message_id))
104104
sleep(10)
105-
print('Retry number {}'.format(msg.attributes['ApproximateReceiveCount']))
105+
print('Retry number {}'.format(msg.attributes.get('ApproximateReceiveCount', 0)))
106106
# try:
107107
# worker.execute(msg.body)
108108
# logger.debug('[django-eb-sqs] Processed message {}'.format(msg.message_id))

0 commit comments

Comments
 (0)