Handle PresenceError correctly

This commit is contained in:
mathieui 2017-10-11 23:47:10 +02:00
parent 38a0e614d4
commit 2b0062a279

View file

@ -1108,8 +1108,8 @@ class MucTab(ChatTab):
for stanza in self.presence_buffer:
try:
self.handle_presence_unjoined(stanza, deterministic)
except PresenceError as e:
self.core.room_error(e.presence, e.presence['from'].bare)
except PresenceError:
self.core.room_error(stanza, stanza['from'].bare)
self.handle_presence_unjoined(last_presence, deterministic, own=True)
self.users.sort()
# Enable the self ping event, to regularly check if we