Skip to content

Bulk asynchronous downloader for multiple file hosts

Throw failure exception when URL doesn't exist instead of potentially renaming files.

Jules-WinnfieldX61607e8eca1a
diff --git a/README.md b/README.md
index 7df7b810e..7a83a9a2e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 3.4.2
+The latest version of the program is 3.4.3
<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 46aa803fb..567bfde23 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.4.2"
+__version__ = "3.4.3"
diff --git a/cyberdrop_dl/client/client.py b/cyberdrop_dl/client/client.py
index 555639689..9ea4e24d5 100644
--- a/cyberdrop_dl/client/client.py
+++ b/cyberdrop_dl/client/client.py
@@ -139,7 +139,7 @@ class DownloadSession:
if 'text' in content_type.lower() or 'html' in content_type.lower():
logger.debug("Server for %s is either down or the file no longer exists", str(url))
await File_Lock.remove_lock(original_filename)
- return
+ raise Exception("URL down or not exist")
total = int(resp.headers.get('Content-Length', str(0))) + resume_point
(folder / title).mkdir(parents=True, exist_ok=True)