unique_sdk 0.9.17__py3-none-any.whl → 0.9.18__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.
@@ -22,7 +22,6 @@ retry_dict = {
22
22
  "error_messages": [
23
23
  "problem proxying the request",
24
24
  "Upstream service reached a hard timeout",
25
- "Invalid response body from API",
26
25
  "You can retry your request",
27
26
  "Internal server error",
28
27
  "Connection aborted",
unique_sdk/_util.py CHANGED
@@ -210,6 +210,7 @@ def retry_on_error(
210
210
  try:
211
211
  return await func(*args, **kwargs)
212
212
  except Exception as e:
213
+ logger.error(f"Retrying because of {e}")
213
214
  should_retry = any(
214
215
  err_msg.lower() in str(e).lower() for err_msg in error_messages
215
216
  )
@@ -235,6 +236,8 @@ def retry_on_error(
235
236
  try:
236
237
  return func(*args, **kwargs)
237
238
  except Exception as e:
239
+ logger.error(f"Retrying because of {e}")
240
+
238
241
  should_retry = any(
239
242
  err_msg.lower() in str(e).lower() for err_msg in error_messages
240
243
  )
unique_sdk/_version.py CHANGED
@@ -1 +1 @@
1
- VERSION = "0.9.15"
1
+ VERSION = "0.9.18"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.17
3
+ Version: 0.9.18
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -899,6 +899,9 @@ All notable changes to this project will be documented in this file.
899
899
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
900
900
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
901
901
 
902
+ ## [0.9.18] - 2025-01-22
903
+ - Removed `Invalid response body from API` from `retry_dict` as it's our own artificail error.
904
+
902
905
  ## [0.9.17] - 2025-01-03
903
906
  - BREAKING CHANGE!! Removed unused `id` from `ShortTermMemory` create and find methods.
904
907
 
@@ -1,6 +1,6 @@
1
1
  unique_sdk/__init__.py,sha256=Cv42hZ3dlsNACMIza7LDARXiY-w7a_ijlSuY_jADJD8,3072
2
2
  unique_sdk/_api_requestor.py,sha256=O6iF_d_jc1ceTYVa3kOQHXjYKdmBp0kGW_pfMw1ClwE,14543
3
- unique_sdk/_api_resource.py,sha256=tfnQCmIXoBLiMIjqte_ZHDepQ-8usG3ZJ_PIqmBtneY,6286
3
+ unique_sdk/_api_resource.py,sha256=ytjomI-IVJwsbvdPyuZCfF-bl-Abgf66bu1D34YxCu8,6244
4
4
  unique_sdk/_api_version.py,sha256=Ku4JPdeyJtnX5eJJvRCEc1_u44UObdVrvrL1T-WwWCs,46
5
5
  unique_sdk/_error.py,sha256=j-deT0PJ-exLCwUkqORRaxaLLrGunDag9bKJSmBBKZI,3343
6
6
  unique_sdk/_http_client.py,sha256=CSc2gduhQ42v6G1oh4Jyg8XL7Sa3YQ7WdTpc6kAyTBI,10369
@@ -10,8 +10,8 @@ unique_sdk/_request_options.py,sha256=oHh2AKka6j9pO53Htur3Wj0VJSusEjq8zkXYY179B_
10
10
  unique_sdk/_unique_object.py,sha256=PLaIzb6NPYghfMKHqDx_ZyojcDcuQzTrATXrktLqMa0,11442
11
11
  unique_sdk/_unique_ql.py,sha256=aUYXhYPA-_kPfImTapilCyDvB_53YpLd51kxILe7fDA,1707
12
12
  unique_sdk/_unique_response.py,sha256=q19hIxlsrkLAQylfHA0webp6bsCCHXkDJDwaC69Iev8,576
13
- unique_sdk/_util.py,sha256=J8L4ynMM6_zzN5uaIxriShr9lYpYa_5RMQAWKuqIcC0,8806
14
- unique_sdk/_version.py,sha256=vvDEh1A9sxOePPyj9r8ujoRVR1sAvFJpJuKrx-Zzxqs,19
13
+ unique_sdk/_util.py,sha256=PlWU8ao74iK1T_On6hravH7O6MXUGSaCHrhkIAmwoag,8929
14
+ unique_sdk/_version.py,sha256=j4_tPC6t3enRds7LqiRuWSyfrYHfEo6CXIDARAWW98I,19
15
15
  unique_sdk/_webhook.py,sha256=GYxbUibQN_W4XlNTHaMIksT9FQJk4LJmlKcxOu3jqiU,2855
16
16
  unique_sdk/api_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  unique_sdk/api_resources/_acronyms.py,sha256=GIU1XH1flGWQYcpsFqTYwg4ioIGxVmb15tux84nmhEg,891
@@ -28,7 +28,7 @@ unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUo
28
28
  unique_sdk/utils/file_io.py,sha256=tcS-5NA97AyiJPhKpWs3i0qKNFsZlttToxrvnWRDJrs,3857
29
29
  unique_sdk/utils/sources.py,sha256=wfboE-neMKa0Wuq9QzfAEFMkNLrIrmm0v-QF33sLo6k,4952
30
30
  unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
31
- unique_sdk-0.9.17.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
32
- unique_sdk-0.9.17.dist-info/METADATA,sha256=hplPuOYGU7ChHDtvKzzu3Fmh968KpFru9cvjyOLro7g,28606
33
- unique_sdk-0.9.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
- unique_sdk-0.9.17.dist-info/RECORD,,
31
+ unique_sdk-0.9.18.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
32
+ unique_sdk-0.9.18.dist-info/METADATA,sha256=8dO6nMtffbsxzKrcO63phs6g5XLl-W5YDjdy0-xz43M,28727
33
+ unique_sdk-0.9.18.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
+ unique_sdk-0.9.18.dist-info/RECORD,,