plugin XEP-0054: fixes error message when we get a ConnectionLost failure
This commit is contained in:
parent
e018212fb4
commit
5be3ccbf38
1 changed files with 5 additions and 2 deletions
|
|
@ -204,8 +204,11 @@ class XEP_0054(object):
|
|||
|
||||
def vcard_err(self, failure, profile):
|
||||
"""Called when something is wrong with registration"""
|
||||
if failure.value.stanza.hasAttribute("from"):
|
||||
log.error(_("Can't find VCard of %s") % failure.value.stanza['from'])
|
||||
try:
|
||||
if failure.value.stanza.hasAttribute("from"):
|
||||
log.error(_("Can't find VCard of %s") % failure.value.stanza['from'])
|
||||
except AttributeError:
|
||||
log.error(_("Can't find VCard: %s") % failure.getErrorMessage())
|
||||
self.host.bridge.actionResult("SUPPRESS", failure.value.stanza['id'], {}, profile) # FIXME: maybe an error message would be better
|
||||
|
||||
def getCard(self, target_s, profile_key=C.PROF_KEY_NONE):
|
||||
|
|
|
|||
Loading…
Reference in a new issue