Commit 30f2b975 authored by Philipp Hörist's avatar Philipp Hörist

Annotations: Handle errors correctly

parent f4d748d4
Pipeline #6601 passed with stages
in 4 minutes and 11 seconds
......@@ -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
......
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