plugin XEP-0402: log a warning instead of an exception on TimeoutError.

This commit is contained in:
Goffi 2026-05-25 17:41:53 +02:00
commit ac315a4300

View file

@ -21,6 +21,7 @@ from typing import Iterator, Self, cast
from pydantic import BaseModel, Field, RootModel
from twisted.internet import defer
from twisted.words.protocols.jabber import jid
from twisted.words.protocols.jabber.xmlstream import TimeoutError
from twisted.words.xish import domish
from tx_xmpp import pubsub
@ -253,6 +254,8 @@ class XEP_0402:
conference.nick,
{"password": conference.password},
)
except TimeoutError:
log.warning(f"[{client.profile}] Timeout while joining {room_jid}")
except Exception:
log.exception(
f"[{client.profile}] Failed to process autojoin for {room_jid}"