now using requests lib as it handles errors nicely

This commit is contained in:
Akash Mahanty
2020-12-13 15:05:57 +05:30
parent ca51c14332
commit 60ee8b95a8
5 changed files with 56 additions and 69 deletions

View File

@@ -4,3 +4,8 @@ class WaybackError(Exception):
"""
Raised when Wayback Machine API Service is unreachable/down.
"""
class URLError(Exception):
"""
Raised when malformed URLs are passed as arguments.
"""