[pixiv] include user ID in failed AJAX warnings (#6581)
This commit is contained in:
@@ -380,8 +380,9 @@ class PixivArtworksExtractor(PixivExtractor):
|
|||||||
ajax_ids.extend(map(int, body["manga"]))
|
ajax_ids.extend(map(int, body["manga"]))
|
||||||
ajax_ids.sort()
|
ajax_ids.sort()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
self.log.warning("Unable to collect artwork IDs using AJAX "
|
self.log.warning("u%s: Failed to collect artwork IDs "
|
||||||
"API (%s: %s)", exc.__class__.__name__, exc)
|
"using AJAX API (%s: %s)",
|
||||||
|
self.user_id, exc.__class__.__name__, exc)
|
||||||
else:
|
else:
|
||||||
works = self._extend_sanity(works, ajax_ids)
|
works = self._extend_sanity(works, ajax_ids)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user