[pixiv] include user ID in failed AJAX warnings (#6581)

This commit is contained in:
Mike Fährmann
2024-12-01 20:44:17 +01:00
parent 4a5dfc7d76
commit 990907572a

View File

@@ -380,8 +380,9 @@ class PixivArtworksExtractor(PixivExtractor):
ajax_ids.extend(map(int, body["manga"]))
ajax_ids.sort()
except Exception as exc:
self.log.warning("Unable to collect artwork IDs using AJAX "
"API (%s: %s)", exc.__class__.__name__, exc)
self.log.warning("u%s: Failed to collect artwork IDs "
"using AJAX API (%s: %s)",
self.user_id, exc.__class__.__name__, exc)
else:
works = self._extend_sanity(works, ajax_ids)