Update SQS.py

Minor fix on the long line
This commit is contained in:
chenxg283 2024-06-23 18:22:44 +08:00 committed by GitHub
parent 59a7ea4075
commit 5974800df0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -737,7 +737,9 @@ class Channel(virtual.Channel):
datetime_now_utc = datetime.now(timezone.utc).replace(
tzinfo=None
)
sts_token_timeout = self.transport_options.get('sts_token_timeout', 900)
sts_token_timeout = self.transport_options.get(
'sts_token_timeout', 900
)
# STS token is generated only if it is not present or
# the time reaches 80% of the token TTL
if (not hasattr(self, 'sts_expiration')) or (