Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -70,14 +70,14 @@ class Watched(object):
|
|||
|
||||
# we check that the previous presence was unavailable (no notification else)
|
||||
try:
|
||||
old_show = self.host.memory.get_entity_datum(
|
||||
client, entity, "presence").show
|
||||
old_show = self.host.memory.get_entity_datum(client, entity, "presence").show
|
||||
except (KeyError, exceptions.UnknownEntityError):
|
||||
old_show = C.PRESENCE_UNAVAILABLE
|
||||
|
||||
if old_show == C.PRESENCE_UNAVAILABLE:
|
||||
watched = self.host.memory.param_get_a(
|
||||
NAME, CATEGORY, profile_key=client.profile)
|
||||
NAME, CATEGORY, profile_key=client.profile
|
||||
)
|
||||
if entity in watched or entity.userhostJID() in watched:
|
||||
self.host.action_new(
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue