We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e5c1c commit aa5934fCopy full SHA for aa5934f
gcsfs/credentials.py
@@ -174,9 +174,14 @@ def _credentials_valid(self, refresh_buffer):
174
self.credentials.valid
175
# In addition to checking current validity, we ensure that there is
176
# not a near-future expiry to avoid errors when expiration hits.
177
- and self.credentials.expiry
178
- and (self.credentials.expiry - datetime.utcnow()).total_seconds()
179
- > refresh_buffer
+ and (
+ (
+ self.credentials.expiry
180
+ and (self.credentials.expiry - datetime.utcnow()).total_seconds()
181
+ > refresh_buffer
182
+ )
183
+ or not self.credentials.expiry
184
185
)
186
187
def maybe_refresh(self, refresh_buffer=300):
0 commit comments