Commit 97080f7a authored by Philipp Hörist's avatar Philipp Hörist
Browse files

UserAvatar: Handle empty data nodes

parent 213ee3cd
......@@ -71,6 +71,11 @@ class UserAvatar(BaseModule):
avatar = yield self._nbxmpp('UserAvatar').request_avatar_data(
avatar_info.id, jid=jid)
if avatar is None:
self._log.warning('%s advertised %s but data node is empty',
jid, avatar_info.id)
return
if is_error(avatar):
self._log.warning(avatar)
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment