From cdae238d763565cbfa372c5131adeb147cf00a52 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 14 Mar 2021 12:26:28 +0100 Subject: fix: bad error handling when checking bookmarks storage --- poezio/core/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poezio/core/core.py b/poezio/core/core.py index fb05623a..732118a4 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -1713,9 +1713,9 @@ class Core: if not self.xmpp.anon and config.get('use_remote_bookmarks'): try: await self.bookmarks.get_remote(self.xmpp, self.information) - except IqError as iq: - type_ = iq['error']['type'] - condition = iq['error']['condition'] + except IqError as error: + type_ = error.iq['error']['type'] + condition = error.iq['error']['condition'] if not (type_ == 'cancel' and condition == 'item-not-found'): self.information( 'Unable to fetch the remote' -- cgit v1.2.3