Fix chrome bookmarks import on sync_transaction_version

This commit is contained in:
Jay Z 2018-08-07 23:11:02 -04:00
parent 8dcc6bc360
commit fcb3de8ee3

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