mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
e445036a20
commit
47c1d93e85
1 changed files with 7 additions and 8 deletions
|
|
@ -180,7 +180,6 @@ def add_port_mapping():
|
|||
# bui.getsound('shieldDown').play() -> RuntimeError : Sound creation failed
|
||||
return
|
||||
|
||||
|
||||
local_ip = (
|
||||
(
|
||||
[
|
||||
|
|
@ -238,7 +237,6 @@ def add_port_mapping():
|
|||
babase.screenmessage('You will need to manualy add the port at the router :(')
|
||||
|
||||
|
||||
|
||||
@threaded
|
||||
def delete_port_mapping():
|
||||
import upnpy
|
||||
|
|
@ -255,7 +253,8 @@ def delete_port_mapping():
|
|||
for service in upnp_dev.services:
|
||||
if service in WAN_SERVICE_NAMES:
|
||||
service = upnp_dev[service]
|
||||
service.DeletePortMapping(NewRemoteHost="", NewExternalPort=BS_PORT, NewProtocol="UDP")
|
||||
service.DeletePortMapping(
|
||||
NewRemoteHost="", NewExternalPort=BS_PORT, NewProtocol="UDP")
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue