Commit 82963ae2 authored by Julien Muchembled's avatar Julien Muchembled

Ignore 'Invalid Args' error when refreshing UPnP forwarding

parent d8df9fa9
......@@ -44,7 +44,7 @@ class Forwarder:
try:
self._u.addportmapping(*args)
except Exception, e:
if str(e) != 'UnknownError':
if str(e) not in ('UnknownError', 'Invalid Args'):
raise
logging.warning("Failed to refresh port forwarding: %s", args)
self.next_refresh = time.time() + 500
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment