From ee97277d5ce8ce84aba466158e05fc471420d13b Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Wed, 9 Jun 2021 17:19:30 +0300 Subject: [PATCH] Fix super() call in uPnPThread --- src/upnp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/upnp.py b/src/upnp.py index c6db487b..24ca3aeb 100644 --- a/src/upnp.py +++ b/src/upnp.py @@ -206,8 +206,9 @@ class uPnPThread(StoppableThread): SSDP_ST = "urn:schemas-upnp-org:device:InternetGatewayDevice:1" def __init__(self): - super(uPnPThread, self).__init__(name="uPnPThread") - self.extPort = BMConfigParser().safeGetInt('bitmessagesettings', 'extport', default=None) + super(uPnPThread, self).__init__(None, name="uPnPThread") + self.extPort = BMConfigParser().safeGetInt( + 'bitmessagesettings', 'extport', None) self.localIP = self.getLocalIP() self.routers = [] self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)