Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
Added missing await at renewing token
  • Loading branch information
tsyganov-ivan authored Nov 21, 2022
1 parent ff1e396 commit dc17f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surepy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async def call(
)
self._auth_token = None
if not second_try:
token_refreshed = self.get_token()
token_refreshed = await self.get_token()
if token_refreshed:
await self.call(method="GET", resource=resource, second_try=True)

Expand Down

0 comments on commit dc17f99

Please # to comment.