meilisearch-python-sdk 2.11.0__py3-none-any.whl → 2.11.1__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 meilisearch-python-sdk might be problematic. Click here for more details.

@@ -61,7 +61,10 @@ class AsyncHttpRequests:
61
61
  raise MeilisearchCommunicationError(str(err)) from err
62
62
  except HTTPError as err:
63
63
  if "response" in locals():
64
- raise MeilisearchApiError(str(err), response) from err
64
+ if "application/json" in response.headers.get("content-type", ""):
65
+ raise MeilisearchApiError(str(err), response) from err
66
+ else:
67
+ raise
65
68
  else:
66
69
  # Fail safe just in case error happens before response is created
67
70
  raise MeilisearchError(str(err)) from err # pragma: no cover
@@ -145,7 +148,10 @@ class HttpRequests:
145
148
  raise MeilisearchCommunicationError(str(err)) from err
146
149
  except HTTPError as err:
147
150
  if "response" in locals():
148
- raise MeilisearchApiError(str(err), response) from err
151
+ if "application/json" in response.headers.get("content-type", ""):
152
+ raise MeilisearchApiError(str(err), response) from err
153
+ else:
154
+ raise
149
155
  else:
150
156
  # Fail safe just in case error happens before response is created
151
157
  raise MeilisearchError(str(err)) from err # pragma: no cover
@@ -1 +1 @@
1
- VERSION = "2.11.0"
1
+ VERSION = "2.11.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: meilisearch-python-sdk
3
- Version: 2.11.0
3
+ Version: 2.11.1
4
4
  Summary: A Python client providing both async and sync support for the Meilisearch API
5
5
  Home-page: https://github.com/sanders41/meilisearch-python-sdk
6
6
  License: MIT
@@ -1,9 +1,9 @@
1
1
  meilisearch_python_sdk/__init__.py,sha256=SB0Jlm6FwT13J9xasZKseZzTWBk0hkfe1CWyWmIIZnE,258
2
2
  meilisearch_python_sdk/_client.py,sha256=uUwIsqr47_a4XaElsP2ew0H-M4VGNHOUNNwNpW9CtYw,66791
3
- meilisearch_python_sdk/_http_requests.py,sha256=uYH4aMysvyAqiW0E102axghFpWBIWsGZBBx2BkfJm88,6803
3
+ meilisearch_python_sdk/_http_requests.py,sha256=codxloe8PeV1e7WCzC9N_DDMJu5_UqSRZl2g4f8O9hE,7073
4
4
  meilisearch_python_sdk/_task.py,sha256=HiyrLsQn5O2PlnUsKPc0RLSPZnJMIsiwA3WSmFsU2Qk,11874
5
5
  meilisearch_python_sdk/_utils.py,sha256=SMoBWDlLtAEtpD8n94CCcHvtBA-HLWyolxPY-n4K_UE,1610
6
- meilisearch_python_sdk/_version.py,sha256=c9A-kqEr69QZVJhpDZ9b51AENNSamwnpGJNkQvRDWoc,19
6
+ meilisearch_python_sdk/_version.py,sha256=HBjUBr8Pc7t7KGSSL56EtHb3w2c4ELcCtsap2ibZD7g,19
7
7
  meilisearch_python_sdk/decorators.py,sha256=KpS5gAgks28BtPMZJumRaXfgXK4A3QNVPR8Z4BpZC0g,8346
8
8
  meilisearch_python_sdk/errors.py,sha256=0sAKYt47-zFpKsEU6W8Qnvf4uHBynKtlGPpPl-5laSA,2085
9
9
  meilisearch_python_sdk/index.py,sha256=USNG8RqmyIuhVhZB0Ba3Uirm18Wm9PeCIDuKT3OlKzE,323068
@@ -19,7 +19,7 @@ meilisearch_python_sdk/models/version.py,sha256=YDu-aj5H-d6nSaWRTXzlwWghmZAoikna
19
19
  meilisearch_python_sdk/plugins.py,sha256=qfc5smEvOqYV_okdcmnJgDszCzOpmUPG1oA2UYCw5dE,3580
20
20
  meilisearch_python_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  meilisearch_python_sdk/types.py,sha256=BoZcEdkazGKp3Hh6h5yMDtDBLYjOQjQW3SH0cO8k8kw,173
22
- meilisearch_python_sdk-2.11.0.dist-info/LICENSE,sha256=xVzevI1TrlKfM0plmJ7vfK1Muu0V9n-dGE8RnDrOFlM,1069
23
- meilisearch_python_sdk-2.11.0.dist-info/METADATA,sha256=W03PkAKjUoQ2-BvfREMXp0WkSgv9kIgZgSmJ13KFCvg,8265
24
- meilisearch_python_sdk-2.11.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
25
- meilisearch_python_sdk-2.11.0.dist-info/RECORD,,
22
+ meilisearch_python_sdk-2.11.1.dist-info/LICENSE,sha256=xVzevI1TrlKfM0plmJ7vfK1Muu0V9n-dGE8RnDrOFlM,1069
23
+ meilisearch_python_sdk-2.11.1.dist-info/METADATA,sha256=UyYQ3H8UbxhMRs5z2xFkO0WNWpkktXL1D40vpz4Udjo,8265
24
+ meilisearch_python_sdk-2.11.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
25
+ meilisearch_python_sdk-2.11.1.dist-info/RECORD,,