plugin XEP-0402: log a warning instead of an exception on TimeoutError.
This commit is contained in:
parent
e257600ad5
commit
ac315a4300
1 changed files with 3 additions and 0 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue