summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'