Skip to content

Bulk asynchronous downloader for multiple file hosts

add password failure

Jules-WinnfieldXa42b015c0641
diff --git a/cyberdrop_dl/clients/errors.py b/cyberdrop_dl/clients/errors.py
index a056bfcc5..34d6134f6 100644
--- a/cyberdrop_dl/clients/errors.py
+++ b/cyberdrop_dl/clients/errors.py
@@ -12,6 +12,13 @@ class NoExtensionFailure(Exception):
super().__init__(self.message)
+class PasswordProtected(Exception):
+ """This error will be thrown when a file is password protected"""
+ def __init__(self, *, message: str = "File/Folder is password protected"):
+ self.message = message
+ super().__init__(self.message)
+
+
class DDOSGuardFailure(Exception):
"""This error will be thrown when DDoS-Guard is detected"""