lint
This commit is contained in:
parent
601f99ac16
commit
ff30386051
1 changed files with 4 additions and 2 deletions
|
@ -539,8 +539,10 @@ class UPnPComponent(Component):
|
||||||
success = False
|
success = False
|
||||||
await self._maintain_redirects()
|
await self._maintain_redirects()
|
||||||
if self.upnp:
|
if self.upnp:
|
||||||
if not self.upnp_redirects and not all(x in self.component_manager.skip_components for x in
|
if not self.upnp_redirects and not all(
|
||||||
(DHT_COMPONENT, PEER_PROTOCOL_SERVER_COMPONENT)):
|
x in self.component_manager.skip_components
|
||||||
|
for x in (DHT_COMPONENT, PEER_PROTOCOL_SERVER_COMPONENT)
|
||||||
|
):
|
||||||
log.error("failed to setup upnp")
|
log.error("failed to setup upnp")
|
||||||
else:
|
else:
|
||||||
success = True
|
success = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue