Reformatted code base using black.

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

View file

@ -291,7 +291,7 @@ class XEP_0176(BaseTransportHandler):
content_name,
content_data,
transport_elt,
iq_elt
iq_elt,
)
await iq_elt.send()
@ -381,8 +381,8 @@ class XEP_0176(BaseTransportHandler):
"""
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 @@ class XEP_0176(BaseTransportHandler):
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: