Skip to content
Snippets Groups Projects
Commit 30f2b975 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Annotations: Handle errors correctly

parent f4d748d4
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ def _annotations_received(self, task: Any) -> None:
except (StanzaError, MalformedStanzaError) as error:
self._log.warning(error)
self._annotations = {}
return
for note in annotations:
self._annotations[note.jid] = note
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment