Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0045.py @ 2990:6959c71ab8bf
plugin XEP-0045: log "failure" on configure error
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 06 Jul 2019 15:51:48 +0200 |
parents | 37b55d87d027 |
children | f4590ca2acff |
comparison
equal
deleted
inserted
replaced
2989:c13333fcde5e | 2990:6959c71ab8bf |
---|---|
235 # FIXME: the current behaviour is to create an instant room | 235 # FIXME: the current behaviour is to create an instant room |
236 # and send the signal only when the room is unlocked | 236 # and send the signal only when the room is unlocked |
237 # a proper configuration management should be done | 237 # a proper configuration management should be done |
238 log.debug(_(u"room locked !")) | 238 log.debug(_(u"room locked !")) |
239 d = client._muc_client.configure(room.roomJID, {}) | 239 d = client._muc_client.configure(room.roomJID, {}) |
240 d.addErrback(lambda __: log.error(_(u'Error while configuring the room'))) | 240 d.addErrback(self.host.logErrback, |
241 msg=_(u'Error while configuring the room: {failure_}')) | |
241 return room.fully_joined | 242 return room.fully_joined |
242 | 243 |
243 def _joinEb(self, failure, client, room_jid, nick, password): | 244 def _joinEb(self, failure, client, room_jid, nick, password): |
244 """Called when something is going wrong when joining the room""" | 245 """Called when something is going wrong when joining the room""" |
245 try: | 246 try: |