Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -74,7 +74,7 @@ class Exp_Parrot(object):
|
|||
# raise trigger.SkipOtherTriggers
|
||||
|
||||
def message_received_trigger(self, client, message_elt, post_treat):
|
||||
""" Check if source is linked and repeat message, else do nothing """
|
||||
"""Check if source is linked and repeat message, else do nothing"""
|
||||
# TODO: many things are not repeated (subject, thread, etc)
|
||||
from_jid = message_elt["from"]
|
||||
|
||||
|
|
@ -93,7 +93,8 @@ class Exp_Parrot(object):
|
|||
|
||||
try:
|
||||
entity_type = self.host.memory.entity_data_get(
|
||||
client, from_jid, [C.ENTITY_TYPE])[C.ENTITY_TYPE]
|
||||
client, from_jid, [C.ENTITY_TYPE]
|
||||
)[C.ENTITY_TYPE]
|
||||
except (UnknownEntityError, KeyError):
|
||||
entity_type = "contact"
|
||||
if entity_type == C.ENTITY_TYPE_MUC:
|
||||
|
|
|
|||
Loading…
Reference in a new issue