Skip to content

Commit

Permalink
Merge pull request #91 from rairyx/upnp
Browse files Browse the repository at this point in the history
add _init_upnp return value
  • Loading branch information
Jan Xie committed Dec 1, 2017
2 parents 62db488 + 1917f77 commit 4560ff1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devp2p/upnp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def _init_upnp():
_upnp = u
except Exception as e:
log.debug('Exception :%s', e)
finally:
return _upnp


def add_portmap(port, proto, label=''):
u = _init_upnp()
Expand Down

0 comments on commit 4560ff1

Please sign in to comment.