deezer-python-gql 0.22.1__py3-none-any.whl → 0.22.2__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.
@@ -288,11 +288,11 @@ class DeezerBaseClient:
288
288
  variables = response.variables
289
289
  if data:
290
290
  # Partial success — some items failed (e.g. deleted albums in favorites).
291
- # Log the errors but return the valid data.
291
+ # That is expected, so log at debug level and return the valid data.
292
292
  error_details = [
293
293
  f"{e.get('message', 'Unknown error')} (path={e.get('path')})" for e in errors
294
294
  ]
295
- logger.warning(
295
+ logger.debug(
296
296
  "GraphQL response for %s (variables=%s) contained %d error(s): %s",
297
297
  op,
298
298
  variables,
@@ -377,7 +377,8 @@ class DeezerBaseClient:
377
377
  text = await resp.text()
378
378
 
379
379
  if not is_success:
380
- if 400 <= status < 500:
380
+ # 429 is rate limiting, not a rejected ARL
381
+ if 400 <= status < 500 and status != 429:
381
382
  msg = f"ARL authentication rejected by auth.deezer.com (HTTP {status})"
382
383
  raise GraphQLClientAuthError(msg)
383
384
  raise GraphQLClientHttpError(
@@ -290,11 +290,11 @@ class DeezerBaseClient:
290
290
  variables = response.variables
291
291
  if data:
292
292
  # Partial success — some items failed (e.g. deleted albums in favorites).
293
- # Log the errors but return the valid data.
293
+ # That is expected, so log at debug level and return the valid data.
294
294
  error_details = [
295
295
  f"{e.get('message', 'Unknown error')} (path={e.get('path')})" for e in errors
296
296
  ]
297
- logger.warning(
297
+ logger.debug(
298
298
  "GraphQL response for %s (variables=%s) contained %d error(s): %s",
299
299
  op,
300
300
  variables,
@@ -379,7 +379,8 @@ class DeezerBaseClient:
379
379
  text = await resp.text()
380
380
 
381
381
  if not is_success:
382
- if 400 <= status < 500:
382
+ # 429 is rate limiting, not a rejected ARL
383
+ if 400 <= status < 500 and status != 429:
383
384
  msg = f"ARL authentication rejected by auth.deezer.com (HTTP {status})"
384
385
  raise GraphQLClientAuthError(msg)
385
386
  raise GraphQLClientHttpError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deezer-python-gql
3
- Version: 0.22.1
3
+ Version: 0.22.2
4
4
  Summary: Async typed Python client for Deezer's Pipe GraphQL API.
5
5
  Author-email: Julian Daberkow <jdaberkow@users.noreply.github.com>
6
6
  License: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  deezer_python_gql/__init__.py,sha256=kwp838G6q8HnV_R0B0zWRBagYXt0rqfXY1IsyX8XDIo,641
2
- deezer_python_gql/base_client.py,sha256=svORNU2V9yhDG3osy0Iaa4ry6Hi8rsNDP-mRdpa7fzg,18169
2
+ deezer_python_gql/base_client.py,sha256=JYzqynf0Ck9qsZ-d6pcEF9b3xuWfiY9OBPbxkV2fOKQ,18269
3
3
  deezer_python_gql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  deezer_python_gql/generated/__init__.py,sha256=mrP8dCdKxvnlU_8liYIhovqikNQIPBhutIdquZ7SN-0,53608
5
5
  deezer_python_gql/generated/add_album_to_favorite.py,sha256=hprfZkN_jIEl3N_zw962GAL_7XhW6odh_rBldgZ0brM,596
@@ -11,7 +11,7 @@ deezer_python_gql/generated/add_track_to_favorite.py,sha256=EUB2jNV5XzbsqntfS6UZ
11
11
  deezer_python_gql/generated/add_tracks_to_playlist.py,sha256=S_AGBUnOV_YP7zdyYpCxWIeJpBuae-r5VOH8HjDcqeM,933
12
12
  deezer_python_gql/generated/ban_artist_from_recommendation.py,sha256=nn7FVdUCVcyfXN528SxGx13UgXx8EToOos-6NNODrU0,703
13
13
  deezer_python_gql/generated/ban_track_from_recommendation.py,sha256=PTjl-0-bqG-49PqAZVqFpe1kk8z5WvyLMG8Gcp4XOi0,687
14
- deezer_python_gql/generated/base_client.py,sha256=NP-wgz1r5v8e6ueRXoWGq5F8JzUoZuKuhBNctr5E0ak,18201
14
+ deezer_python_gql/generated/base_client.py,sha256=UMbBCThMhrIbngTiTW9yQPunL4UbUGnLq9LmJn54rqU,18301
15
15
  deezer_python_gql/generated/base_model.py,sha256=S-phq2fzKu2Kuct1dUnbyvMPT5k7TsfqOkCf_3yZ19I,640
16
16
  deezer_python_gql/generated/bookmark_podcast_episode.py,sha256=4j2J2lltmMLEv7aOKF8ZHSMkBTzoVNmbcrp6lLkrvo4,768
17
17
  deezer_python_gql/generated/client.py,sha256=GeLYL07D1fIZFk5jZDgSqFuGDvCL_TMMAkygDcTAjcw,150613
@@ -88,8 +88,8 @@ deezer_python_gql/generated/unban_artist_from_recommendation.py,sha256=mUM5zp_MI
88
88
  deezer_python_gql/generated/unban_track_from_recommendation.py,sha256=idpo4keNegu5l-7I8OorOdWa8fDE7igMzW1zJRxCg9M,715
89
89
  deezer_python_gql/generated/unbookmark_podcast_episode.py,sha256=-GjprmbpIjzyTsx9ELneKG_TAas5fsMJgFUywuGo-VM,666
90
90
  deezer_python_gql/generated/update_playlist.py,sha256=L9w-b_8CLdsW4qwN0ZgcGuutyUhGQPRf9va1XlSwZhQ,534
91
- deezer_python_gql-0.22.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
92
- deezer_python_gql-0.22.1.dist-info/METADATA,sha256=xTVlQjNyVpJ21UIrl57FuN6kaEvQSCKAQOSGCZMw0o0,16960
93
- deezer_python_gql-0.22.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
94
- deezer_python_gql-0.22.1.dist-info/top_level.txt,sha256=Yf7lMr1RCsfdcASo4pLoZIzA5aTa-cqzUePMX-A0QOM,18
95
- deezer_python_gql-0.22.1.dist-info/RECORD,,
91
+ deezer_python_gql-0.22.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
92
+ deezer_python_gql-0.22.2.dist-info/METADATA,sha256=7mHTnP-Iq3ZUmoTVpUlpP4JKyoj1XMynFW-o3xGR1Ic,16960
93
+ deezer_python_gql-0.22.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
94
+ deezer_python_gql-0.22.2.dist-info/top_level.txt,sha256=Yf7lMr1RCsfdcASo4pLoZIzA5aTa-cqzUePMX-A0QOM,18
95
+ deezer_python_gql-0.22.2.dist-info/RECORD,,