Skip to content

Commit

Permalink
Fix for issue #49
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Apr 11, 2019
1 parent 098de1c commit f3da1d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqs_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def get_number_of_messages(queues_str):
queue = sqs.get_queue_by_name(QueueName=full_queue_name)
total_count += int(queue.attributes.get('ApproximateNumberOfMessages') or 0)
except Exception as e:
assert e is not None # make linters happy
logger.warning('Unable to check queue: {q}'.format(q=full_queue_name), exc_info=True)
continue

Expand Down

0 comments on commit f3da1d9

Please sign in to comment.