diff options
Diffstat (limited to 'poezio/bookmarks.py')
-rw-r--r-- | poezio/bookmarks.py | 4 |
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'): |