diff options
author | Jay Z <jZhangTk@gmail.com> | 2018-08-07 23:11:02 -0400 |
---|---|---|
committer | Jay Z <jZhangTk@gmail.com> | 2018-08-07 23:11:02 -0400 |
commit | fcb3de8ee3a7580ff9887b909aff02d7d88f700c (patch) | |
tree | eb686de709f49f5f0caf3a69b1f0e7c9d0b008ae /scripts/importer.py | |
parent | 8dcc6bc36078437ddf224dc964aca8ed6f488009 (diff) | |
download | qutebrowser-fcb3de8ee3a7580ff9887b909aff02d7d88f700c.tar.gz qutebrowser-fcb3de8ee3a7580ff9887b909aff02d7d88f700c.zip |
Fix chrome bookmarks import on `sync_transaction_version`
Diffstat (limited to 'scripts/importer.py')
-rwxr-xr-x | scripts/importer.py | 2 |
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': |