Skip to content

Commit 25f00a9

Browse files
committed
fix: regenerate client and improve check_audiobook_ids debug logging
Also add a CI note: always run make codegen before releasing.
1 parent 0c1da24 commit 25f00a9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

deezer_python_gql/base_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ async def check_audiobook_ids(self, album_ids: list[str]) -> set[str]:
328328
try:
329329
data = self.get_data(resp)
330330
except GraphQLClientGraphQLMultiError:
331-
# All IDs were non-audiobooks — every alias returned an error.
331+
# Expected when none of the IDs are audiobooks (every alias errors).
332+
# Also handles transient API errors — return empty rather than crash.
333+
logger.debug("CheckAudiobookIds: all %d IDs returned errors", len(album_ids))
332334
return set()
333335

334336
audiobook_ids: set[str] = set()

deezer_python_gql/generated/base_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ async def check_audiobook_ids(self, album_ids: list[str]) -> set[str]:
330330
try:
331331
data = self.get_data(resp)
332332
except GraphQLClientGraphQLMultiError:
333-
# All IDs were non-audiobooks — every alias returned an error.
333+
# Expected when none of the IDs are audiobooks (every alias errors).
334+
# Also handles transient API errors — return empty rather than crash.
335+
logger.debug("CheckAudiobookIds: all %d IDs returned errors", len(album_ids))
334336
return set()
335337

336338
audiobook_ids: set[str] = set()

0 commit comments

Comments
 (0)