Unused vars, unhappy linter gods

This commit is contained in:
Alexandre Aubin 2023-06-13 14:56:21 +02:00
parent 8728b2030c
commit c4c353843c

View file

@ -404,7 +404,7 @@ def firewall_upnp(action="status", no_refresh=False):
logger.debug("discovering UPnP devices...")
try:
nb_dev = upnpc.discover()
except Exception as e:
except Exception:
logger.warning("Failed to find any UPnP device on the network")
nb_dev = -1
enabled = False