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

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents e11b13418ba6
children 29fda1340078
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0176.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_xep_0176.py	Wed Jun 19 18:44:57 2024 +0200
@@ -291,7 +291,7 @@
                     content_name,
                     content_data,
                     transport_elt,
-                    iq_elt
+                    iq_elt,
                 )
                 await iq_elt.send()
 
@@ -381,8 +381,8 @@
         """
         session = self._j.get_session(client, session_id)
         iq_elt: Optional[domish.Element] = None
-        content_name: str|None = None
-        content_data: dict|None = None
+        content_name: str | None = None
+        content_data: dict | None = None
 
         for media_type, new_ice_data in media_ice_data.items():
             if session["state"] == self._j.STATE_PENDING:
@@ -436,8 +436,13 @@
             assert content_name is not None and content_data is not None
             try:
                 self.host.trigger.point(
-                    "XEP-0176_ice_candidate_send", client, session, media_ice_data,
-                    content_name, content_data, iq_elt
+                    "XEP-0176_ice_candidate_send",
+                    client,
+                    session,
+                    media_ice_data,
+                    content_name,
+                    content_data,
+                    iq_elt,
                 )
                 await iq_elt.send()
             except Exception as e: