Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0054.py @ 3554:184c66256bbc
plugin XEP-0054: fix update call
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 09 Jun 2021 11:35:49 +0200 |
parents | be6d91572633 |
children | 413e96caa682 |
comparison
equal
deleted
inserted
replaced
3553:01c23359b915 | 3554:184c66256bbc |
---|---|
280 entity_jid = self._i.getIdentityJid(client, entity_jid) | 280 entity_jid = self._i.getIdentityJid(client, entity_jid) |
281 log.debug(f"Asking for {entity_jid}'s VCard") | 281 log.debug(f"Asking for {entity_jid}'s VCard") |
282 try: | 282 try: |
283 vcard_elt = await self.getVCardElement(client, entity_jid) | 283 vcard_elt = await self.getVCardElement(client, entity_jid) |
284 except exceptions.DataError: | 284 except exceptions.DataError: |
285 self._i.update(client, IMPORT_NAME, "avatar", IMPORT_NAME, None, entity_jid) | 285 self._i.update(client, IMPORT_NAME, "avatar", None, entity_jid) |
286 except Exception as e: | 286 except Exception as e: |
287 log.warning(_( | 287 log.warning(_( |
288 "Can't get vCard for {entity_jid}: {e}" | 288 "Can't get vCard for {entity_jid}: {e}" |
289 ).format(entity_jid=entity_jid, e=e)) | 289 ).format(entity_jid=entity_jid, e=e)) |
290 else: | 290 else: |