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

UserAvatar: Handle empty data nodes

parent 213ee3cd
Pipeline #7401 passed with stages
in 7 minutes and 14 seconds
......@@ -71,6 +71,11 @@ def _request_avatar_data(self, jid, avatar_info):
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