Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -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: