added RedirectSaveError - for failed saves if the URL is a permanent redirect.

This commit is contained in:
Akash Mahanty
2021-04-02 00:35:26 +05:30
parent db8f902cff
commit 8171c8e394
2 changed files with 15 additions and 1 deletions

View File

@@ -13,6 +13,13 @@ class WaybackError(Exception):
"""
class RedirectSaveError(WaybackError):
"""
Raised when the original URL is redirected and the
redirect URL is archived but not the original URL.
"""
class URLError(Exception):
"""
Raised when malformed URLs are passed as arguments.