add BlockedSiteError for cases when archiving is blocked by site's robots.txt

This commit is contained in:
Akash Mahanty
2022-02-17 21:04:21 +05:30
parent b4adf4a372
commit faa97e5877

View File

@@ -16,6 +16,13 @@ class WaybackError(Exception):
""" """
class BlockedSiteError(WaybackError):
"""
Raised when the archives for website/URLs that was excluded from Wayback
Machine are requested via the CDX server API.
"""
class TooManyRequestsError(WaybackError): class TooManyRequestsError(WaybackError):
""" """
Raised when you make more than 15 requests per Raised when you make more than 15 requests per