File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
src/globus_action_provider_tools Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments