p123client 0.0.7.2__tar.gz → 0.0.7.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/PKG-INFO +1 -1
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/p123client/client.py +3 -3
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/pyproject.toml +1 -1
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/LICENSE +0 -0
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/p123client/__init__.py +0 -0
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/p123client/const.py +0 -0
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/p123client/exception.py +0 -0
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/p123client/py.typed +0 -0
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/p123client/tool/__init__.py +0 -0
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/p123client/type.py +0 -0
- {p123client-0.0.7.2 → p123client-0.0.7.2.1}/readme.md +0 -0
@@ -488,7 +488,7 @@ class P123OpenClient:
|
|
488
488
|
request_kwargs["session"] = self.async_session if async_ else self.session
|
489
489
|
request_kwargs["async_"] = async_
|
490
490
|
request = get_default_request()
|
491
|
-
if self.
|
491
|
+
if self.check_for_relogin:
|
492
492
|
headers = dict(self.headers)
|
493
493
|
if request_headers := request_kwargs.get("headers"):
|
494
494
|
headers.update(request_headers)
|
@@ -526,8 +526,8 @@ class P123OpenClient:
|
|
526
526
|
if token != token_new:
|
527
527
|
headers["authorization"] = "Bearer " + self.token
|
528
528
|
continue
|
529
|
-
if i:
|
530
|
-
|
529
|
+
if i or not self.can_relogin():
|
530
|
+
return resp
|
531
531
|
user_id = getattr(self, "user_id", None)
|
532
532
|
warn(f"relogin to refresh token: {user_id=}", category=P123Warning)
|
533
533
|
yield self.login(replace=True, async_=async_)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|