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 7c34d3c commit ba1d03bCopy full SHA for ba1d03b
minio/credentials/credentials.py
@@ -41,8 +41,9 @@ def __post_init__(self):
41
raise ValueError("Secret key must not be empty")
42
43
if self.expiration and self.expiration.tzinfo:
44
- self.expiration = (
45
- self.expiration.astimezone(timezone.utc).replace(tzinfo=None)
+ object.__setattr__(
+ self, "expiration",
46
+ self.expiration.astimezone(timezone.utc).replace(tzinfo=None),
47
)
48
49
def is_expired(self) -> bool:
0 commit comments