Update exceptions.py

This commit is contained in:
akamhy 2020-05-05 10:07:27 +05:30 committed by GitHub
parent 44156e5e7e
commit f5acbcfc95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,13 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
class TooManyArchivingRequests(Exception): class TooManyArchivingRequests(Exception):
"""Error when a single url reqeusted for archiving too many times in a short timespam. """Error when a single url reqeusted for archiving too many times in a short timespam.
Wayback machine doesn't supports archivng any url too many times in a short period of time. Wayback machine doesn't supports archivng any url too many times in a short period of time.
""" """
class ArchivingNotAllowed(Exception): class ArchivingNotAllowed(Exception):
"""Files like robots.txt are set to deny robot archiving. """Files like robots.txt are set to deny robot archiving.
Wayback machine respects these file, will not archive. Wayback machine respects these file, will not archive.
""" """