File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,6 @@ def _is_expired() -> bool:
210210 auth_logger .warning (
211211 msg = f"Failed to refresh expired credentials (Error: { str (e )} ). Attempting interactive login."
212212 )
213- # Fall through to case #4 below.
214- # self.login(allow_open_browser=allow_open_browser, allow_tty_prompt=allow_tty_prompt)
215- # return
216213
217214 # Case #4 above.
218215 self .login (allow_open_browser = allow_open_browser , allow_tty_prompt = allow_tty_prompt )
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ def _refresh(self):
8484
8585 def _refresh_needed (self , check_time : Optional [int ] = None ) -> bool :
8686 if self ._token_body is None :
87- # Always consider no token in need of a refresh.
87+ # Always consider not having the token loaded and primed to be
88+ # in need of a refresh. In _refresh_if_needed(), this will
89+ # trigger a reload before doing a network refresh.
8890 return True
8991
9092 if self ._refresh_at is None :
You can’t perform that action at this time.
0 commit comments