Skip to content

Commit

Permalink
Merge pull request #50 from tisnik/fix-issue-49
Browse files Browse the repository at this point in the history
Fix for issue #49
  • Loading branch information
tisnik authored Apr 11, 2019
2 parents 098de1c + f3da1d9 commit a0a3e18
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 a0a3e18

Please sign in to comment.