Skip to content

Commit 463e0c4

Browse files
authored
Remove an unreachable code block (#174)
1 parent 4ba7b28 commit 463e0c4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/globus_action_provider_tools/authentication.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,7 @@ def get_authorizer_for_scope(
244244
refresh_token = cast(str, dep_tkn_resp.get("refresh_token"))
245245
access_token = cast(str, dep_tkn_resp.get("access_token"))
246246
token_expiration = dep_tkn_resp.get("expires_at_seconds", 0)
247-
# IF for some reason the token_expiration comes in a string, or even a string
248-
# containing a float representation, try converting to a proper int. If the
249-
# conversion is impossible, set expiration to 0 which should force some sort of
250-
# refresh as described elsewhere.
251-
if not isinstance(token_expiration, int):
252-
try:
253-
token_expiration = int(float(token_expiration))
254-
except ValueError:
255-
token_expiration = 0
247+
256248
now = time()
257249

258250
# IF we have an access token, we'll try building an authorizer from it if it is

0 commit comments

Comments
 (0)