diff libervia/backend/plugins/plugin_exp_parrot.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_exp_parrot.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_exp_parrot.py	Wed Jun 19 18:44:57 2024 +0200
@@ -74,7 +74,7 @@
     #        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 @@
 
             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: