Skip to content

Commit

Permalink
fix format on specify endpoint of sqs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaisukeMiyamoto authored Apr 19, 2020
1 parent 4f7ca49 commit 13e47f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sqswatcher/sqswatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def _get_sqs_queue(region, queue_name, proxy_config):
:return: the Queue object
"""
log.debug("Getting SQS queue '%s'", queue_name)
sqs = boto3.resource("sqs", region_name=region, config=proxy_config, endpoint_url="https://sqs." + region + ".amazonaws.com")
sqs = boto3.resource(
"sqs", region_name=region, config=proxy_config, endpoint_url="https://sqs." + region + ".amazonaws.com"
)
try:
queue = sqs.get_queue_by_name(QueueName=queue_name)
log.debug("SQS queue is %s", queue)
Expand Down

0 comments on commit 13e47f0

Please sign in to comment.