Fix log message

Presence without vcard hash is not invalid
This commit is contained in:
Philipp Hörist 2018-05-21 18:38:47 +02:00
parent 764b275394
commit 0ea721fbf1
1 changed files with 2 additions and 1 deletions

View File

@ -2250,7 +2250,8 @@ class RoomAvatarReceivedEvent(nec.NetworkIncomingEvent):
def generate(self):
vcard = self.stanza.getTag('x', namespace=nbxmpp.NS_VCARD_UPDATE)
if vcard is None:
log.warning('Invalid room self presence:\n%s', self.stanza)
app.log('avatar').info(
'%s has no avatar published (vCard)', self.jid)
return
self.avatar_sha = vcard.getTagData('photo')
return True