shopware-api-client 1.0.103__py3-none-any.whl → 1.0.105__py3-none-any.whl
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.
Potentially problematic release.
This version of shopware-api-client might be problematic. Click here for more details.
- shopware_api_client/base.py +1 -1
- shopware_api_client/exceptions.py +1 -0
- {shopware_api_client-1.0.103.dist-info → shopware_api_client-1.0.105.dist-info}/METADATA +1 -1
- {shopware_api_client-1.0.103.dist-info → shopware_api_client-1.0.105.dist-info}/RECORD +6 -6
- {shopware_api_client-1.0.103.dist-info → shopware_api_client-1.0.105.dist-info}/LICENSE +0 -0
- {shopware_api_client-1.0.103.dist-info → shopware_api_client-1.0.105.dist-info}/WHEEL +0 -0
shopware_api_client/base.py
CHANGED
|
@@ -147,7 +147,7 @@ class ClientBase:
|
|
|
147
147
|
retry_count += 1
|
|
148
148
|
continue
|
|
149
149
|
|
|
150
|
-
if response.status_code >= 400:
|
|
150
|
+
if response.status_code >= 400 and response.status_code != 429:
|
|
151
151
|
try:
|
|
152
152
|
errors: list = response.json().get("errors")
|
|
153
153
|
# ensure `errors` attribute is a list/tuple, fallback to from_response if not
|
|
@@ -95,6 +95,7 @@ class SWAPIError(SWAPIException):
|
|
|
95
95
|
@classmethod
|
|
96
96
|
def from_response(cls, response: Response) -> "SWAPIError":
|
|
97
97
|
exception_class = cls.get_exception_class(response.status_code)
|
|
98
|
+
response.headers["requested-url"] = response.request.url
|
|
98
99
|
return exception_class(
|
|
99
100
|
status=response.status_code,
|
|
100
101
|
title=response.reason_phrase,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
shopware_api_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
shopware_api_client/base.py,sha256=
|
|
2
|
+
shopware_api_client/base.py,sha256=i1iKwQeR8XBDbo0xXJdXXOaWvxyw0GimI8RHNjR1KlY,25099
|
|
3
3
|
shopware_api_client/client.py,sha256=vkTZ8WLIu0Q3_73gXvidkTSpMJlWsJUjFyhDY2f2ISM,7583
|
|
4
4
|
shopware_api_client/config.py,sha256=HStgfQcClpo_aqaTRDrqdTUjqSGPFkIMjrPwSruVnM8,1565
|
|
5
5
|
shopware_api_client/endpoints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -105,10 +105,10 @@ shopware_api_client/endpoints/store/__init__.py,sha256=LE_GL4jYVGrRdp6M1cPURI-UJ
|
|
|
105
105
|
shopware_api_client/endpoints/store/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
106
106
|
shopware_api_client/endpoints/store/core/address.py,sha256=Tm7ri-i0zhyt4LVEHaQy3xEvjapCCPRsYAp5lOCDOew,2774
|
|
107
107
|
shopware_api_client/endpoints/store/core/cart.py,sha256=34eNwuv7H9WZUtJGf4TkTGHiGynDT6xeAt0gIl7V4KI,2584
|
|
108
|
-
shopware_api_client/exceptions.py,sha256=
|
|
108
|
+
shopware_api_client/exceptions.py,sha256=wVLAdXegQA9Zqlw_Yh4r8o7R5M_b0kMWGEJT8O1CqCY,4524
|
|
109
109
|
shopware_api_client/logging.py,sha256=4QSTK1vcdBew4shvLG-fm-xDOlddhOZeyb5T9Og0fSA,251
|
|
110
110
|
shopware_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
111
|
-
shopware_api_client-1.0.
|
|
112
|
-
shopware_api_client-1.0.
|
|
113
|
-
shopware_api_client-1.0.
|
|
114
|
-
shopware_api_client-1.0.
|
|
111
|
+
shopware_api_client-1.0.105.dist-info/LICENSE,sha256=qTihFhbGE2ZJJ7Byc9hnEYBY33yDK2Jw87SpAm0IKUs,1107
|
|
112
|
+
shopware_api_client-1.0.105.dist-info/METADATA,sha256=_d1--GGVad9UVudtS3X-7bptcwQQ1-Et85M3IaTSVkI,22659
|
|
113
|
+
shopware_api_client-1.0.105.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
114
|
+
shopware_api_client-1.0.105.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|