summaryrefslogtreecommitdiff
path: root/poezio/bookmarks.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-14 22:31:22 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commit4b198be9771594a28824cc082e737fe15ab681ec (patch)
tree01de648647136734d176ba0fa33e96a61bbafc88 /poezio/bookmarks.py
parentbc4f4f1e0766aedb6b0e9f3df90fee9ea841786c (diff)
downloadpoezio-4b198be9771594a28824cc082e737fe15ab681ec.tar.gz
poezio-4b198be9771594a28824cc082e737fe15ab681ec.tar.bz2
poezio-4b198be9771594a28824cc082e737fe15ab681ec.tar.xz
poezio-4b198be9771594a28824cc082e737fe15ab681ec.zip
fix: tons of type errors
Diffstat (limited to 'poezio/bookmarks.py')
-rw-r--r--poezio/bookmarks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/bookmarks.py b/poezio/bookmarks.py
index 91dc060c..ff8d2b29 100644
--- a/poezio/bookmarks.py
+++ b/poezio/bookmarks.py
@@ -250,7 +250,7 @@ class BookmarkList:
if core is not None:
core.information('Bookmarks saved', 'Info')
return result
- except (IqError, IqTimeout) as iq:
+ except (IqError, IqTimeout):
if core is not None:
core.information(
'Could not save remote bookmarks.',
@@ -318,7 +318,7 @@ class BookmarkList:
self.append(b)
-def stanza_storage(bookmarks: BookmarkList) -> Bookmarks:
+def stanza_storage(bookmarks: Union[BookmarkList, List[Bookmark]]) -> Bookmarks:
"""Generate a <storage/> stanza with the conference elements."""
storage = Bookmarks()
for b in (b for b in bookmarks if b.method == 'remote'):