Skip to content

Bulk asynchronous downloader for multiple file hosts

refactor: prioritize file info errors (cyberdrop) (#1596)

NTFSvolume8a9d11ac4d96
diff --git a/cyberdrop_dl/crawlers/cyberdrop.py b/cyberdrop_dl/crawlers/cyberdrop.py
index 6caf780a9..39f581da7 100644
--- a/cyberdrop_dl/crawlers/cyberdrop.py
+++ b/cyberdrop_dl/crawlers/cyberdrop.py
@@ -73,7 +73,13 @@ class CyberdropCrawler(Crawler):
info, auth = await asyncio.gather(
self.request_json(_API_ENTRYPOINT / "file" / "info" / file_id),
self.request_json(_API_ENTRYPOINT / "file" / "auth" / file_id),
+ return_exceptions=True,
)
+ if isinstance(info, BaseException):
+ raise info
+
+ if isinstance(auth, BaseException):
+ raise auth
name: str = info["name"]
filename, ext = self.get_filename_and_ext(name)