Suppress the urllib2/3 Exception
This commit is contained in:
@@ -108,7 +108,9 @@ class Url():
|
|||||||
try:
|
try:
|
||||||
response = urlopen(req) #nosec
|
response = urlopen(req) #nosec
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise WaybackError(e)
|
waybackraise = WaybackError(e)
|
||||||
|
waybackraise.__cause__ = None #Suppress the urllib2/3 Exception
|
||||||
|
raise waybackraise
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def near(self, **kwargs):
|
def near(self, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user