summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-14 12:26:28 +0100
committermathieui <mathieui@mathieui.net>2021-03-14 12:26:28 +0100
commitcdae238d763565cbfa372c5131adeb147cf00a52 (patch)
tree9a519307d3714dbbaba4b26fbbe75962a7bc019d
parent6b0d393cf8d5fd38bdd3cf89b0751beb104d3ddd (diff)
downloadpoezio-cdae238d763565cbfa372c5131adeb147cf00a52.tar.gz
poezio-cdae238d763565cbfa372c5131adeb147cf00a52.tar.bz2
poezio-cdae238d763565cbfa372c5131adeb147cf00a52.tar.xz
poezio-cdae238d763565cbfa372c5131adeb147cf00a52.zip
fix: bad error handling when checking bookmarks storage
-rw-r--r--poezio/core/core.py6
1 files 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'