Fix chrome bookmarks import on `sync_transaction_version`
(cherry picked from commit fcb3de8ee3)
This commit is contained in:
parent
4efb19dc76
commit
9ef1c36d69
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue