jegesh / python-sqs-listener

A simple wrapper for boto3 for listening, and sending, to an AWS SQS queue
Other
154 stars 71 forks source link

`continue` statement in while loop for listener #41

Closed hjpotter92 closed 4 years ago

hjpotter92 commented 4 years ago

https://github.com/jegesh/python-sqs-listener/blob/master/sqs_listener/__init__.py#L151

I think the continue statement will break the flow of code execution:

            if 'Messages' in messages:
                sqs_logger.debug(messages)
                continue
                sqs_logger.info("{} messages received".format(len(messages['Messages'])))
jegesh commented 4 years ago

good catch. This was accidentally included in a PR from a few days ago. Now fixed. I didn't push these changes to pypi, in any case