mirror of https://github.com/n1nj4sec/pupy.git
Silently ignore errors if IGD is not accessible
This commit is contained in:
parent
8b0f750f9d
commit
7768e8791b
|
@ -242,7 +242,11 @@ class IGDClient:
|
|||
if not descURL:
|
||||
return
|
||||
|
||||
descXMLs = urllib2.urlopen(descURL).read()
|
||||
try:
|
||||
descXMLs = urllib2.urlopen(descURL, None, self.timeout).read()
|
||||
except:
|
||||
return
|
||||
|
||||
self.pr = urlparse(descURL)
|
||||
baseURL = self.pr.scheme + "://" + self.pr.netloc
|
||||
dom = fromstring(descXMLs)
|
||||
|
|
Loading…
Reference in New Issue