Suppress the urllib2/3 Exception

This commit is contained in:
Akash
2020-07-21 20:11:11 +05:30
committed by GitHub
parent 28e8e00fb3
commit 6561ef4ca5

View File

@@ -108,7 +108,9 @@ class Url():
try:
response = urlopen(req) #nosec
except Exception as e:
raise WaybackError(e)
waybackraise = WaybackError(e)
waybackraise.__cause__ = None #Suppress the urllib2/3 Exception
raise waybackraise
return response
def near(self, **kwargs):