mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 13:24:19 -05:00
Catch failure to part user from room
This commit is contained in:
parent
217bc53c98
commit
6b49628e3b
@ -114,10 +114,16 @@ class DeactivateAccountHandler(BaseHandler):
|
|||||||
rooms_for_user = yield self.store.get_rooms_for_user(user_id)
|
rooms_for_user = yield self.store.get_rooms_for_user(user_id)
|
||||||
for room_id in rooms_for_user:
|
for room_id in rooms_for_user:
|
||||||
logger.info("User parter parting %r from %r", user_id, room_id)
|
logger.info("User parter parting %r from %r", user_id, room_id)
|
||||||
yield self._room_member_handler.update_membership(
|
try:
|
||||||
create_requester(user),
|
yield self._room_member_handler.update_membership(
|
||||||
user,
|
create_requester(user),
|
||||||
room_id,
|
user,
|
||||||
"leave",
|
room_id,
|
||||||
ratelimit=False,
|
"leave",
|
||||||
)
|
ratelimit=False,
|
||||||
|
)
|
||||||
|
except Exception:
|
||||||
|
logger.exception(
|
||||||
|
"Failed to part user %r from room %r: ignoring and continuing",
|
||||||
|
user_id, room_id,
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user