Catch all exception on uPnP port opening
This commit is contained in:
parent
c7247fc462
commit
86e607c403
2 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.6.0"
|
||||
self.rev = 3139
|
||||
self.rev = 3141
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -304,9 +304,8 @@ def _communicate_with_igd(port=15441,
|
|||
try:
|
||||
_orchestrate_soap_request(local_ip, port, fn, desc, protos)
|
||||
return True
|
||||
except (UpnpError, IGDError) as e:
|
||||
logging.debug('Upnp request using "{0}" failed: {1}'.format(
|
||||
local_ip, e))
|
||||
except Exception as e:
|
||||
logging.debug('Upnp request using "{0}" failed: {1}'.format(local_ip, e))
|
||||
gevent.sleep(1)
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue