Skip to content

Bulk asynchronous downloader for multiple file hosts

add failed login error

Jules-WinnfieldX799f902540b4
diff --git a/cyberdrop_dl/clients/errors.py b/cyberdrop_dl/clients/errors.py
index fcb980dfa..113af3ce3 100644
--- a/cyberdrop_dl/clients/errors.py
+++ b/cyberdrop_dl/clients/errors.py
@@ -20,3 +20,10 @@ class DownloadFailure(Exception):
self.message = message
super().__init__(self.message)
super().__init__(self.status)
+
+
+class FailedLoginFailure(Exception):
+ """This error will be thrown when the login fails for a site"""
+ def __init__(self, *, message: str = "Failed login."):
+ self.message = message
+ super().__init__(self.message)
\ No newline at end of file