Fix chrome bookmarks import on `sync_transaction_version`

(cherry picked from commit fcb3de8ee3)
This commit is contained in:
Jay Z 2018-08-07 23:11:02 -04:00 committed by Florian Bruhin
parent 4efb19dc76
commit 9ef1c36d69
1 changed files with 2 additions and 0 deletions

View File

@ -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':