summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Z <jZhangTk@gmail.com>2018-08-07 23:11:02 -0400
committerFlorian Bruhin <git@the-compiler.org>2018-08-15 10:55:18 +0200
commit9ef1c36d69ca6b45cdc829857c5b14edd80d32d0 (patch)
tree303217b614daa8d9cbafe65aafb21dafa2cc4475
parent4efb19dc763a84b46f42f5d04f815d95c04ce072 (diff)
downloadqutebrowser-9ef1c36d69ca6b45cdc829857c5b14edd80d32d0.tar.gz
qutebrowser-9ef1c36d69ca6b45cdc829857c5b14edd80d32d0.zip
Fix chrome bookmarks import on `sync_transaction_version`
(cherry picked from commit fcb3de8ee3a7580ff9887b909aff02d7d88f700c)
-rwxr-xr-xscripts/importer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/importer.py b/scripts/importer.py
index eb808a615..fd3e4ca0b 100755
--- a/scripts/importer.py
+++ b/scripts/importer.py
@@ -333,6 +333,8 @@ def import_chrome(profile, bookmark_types, output_format):
def bm_tree_walk(bm, template):
"""Recursive function to walk through bookmarks."""
+ if not isinstance(bm, dict):
+ return
assert 'type' in bm, bm
if bm['type'] == 'url':
if urllib.parse.urlparse(bm['url']).scheme != 'chrome':