Formatting + type hints
This commit is contained in:
parent
1782fc69d1
commit
610eac0718
1 changed files with 15 additions and 13 deletions
|
|
@ -1188,9 +1188,11 @@ class XEP_0277:
|
|||
pass
|
||||
else:
|
||||
# other server, let's try to find a non PEP service there
|
||||
d = defer.ensureDeferred(self.host.find_service_entity(
|
||||
client, "pubsub", "service", parent_service
|
||||
))
|
||||
d = defer.ensureDeferred(
|
||||
self.host.find_service_entity(
|
||||
client, "pubsub", "service", parent_service
|
||||
)
|
||||
)
|
||||
d.addCallback(lambda entity: entity or parent_service)
|
||||
else:
|
||||
# parent is already on a normal Pubsub service, we re-use it
|
||||
|
|
|
|||
Loading…
Reference in a new issue