Skip to content

Bulk asynchronous downloader for multiple file hosts

e.code is depricated, will need to change things over in other parts of the codebase

Jules-WinnfieldXb7a3ab2a465f
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 9c1ed355a..e749ee11c 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.2.144"
+__version__ = "4.2.145"
diff --git a/cyberdrop_dl/crawlers/GoFile_Spider.py b/cyberdrop_dl/crawlers/GoFile_Spider.py
index 97888a0ac..7e5d89b45 100644
--- a/cyberdrop_dl/crawlers/GoFile_Spider.py
+++ b/cyberdrop_dl/crawlers/GoFile_Spider.py
@@ -117,7 +117,7 @@ class GoFileCrawler:
async with self.limiter:
content = await session.get_json(self.api_address / "getContent", params)
except aiohttp.client_exceptions.ClientResponseError as e:
- if e.code == http.HTTPStatus.UNAUTHORIZED:
+ if e.status == http.HTTPStatus.UNAUTHORIZED:
self.websiteToken = ""
await self.cache_manager.remove("gofile_website_token")
await self.get_website_token(session)