Remove blank lines
This commit is contained in:
parent
940d3e1642
commit
89c6578078
4
buku
4
buku
@ -2388,14 +2388,12 @@ class BukuDb:
|
||||
data = json.load(datafile)
|
||||
|
||||
items = import_firefox_json(data, add_bookmark_folder_as_tag, newtag)
|
||||
|
||||
except ValueError as e:
|
||||
logerr("JSON Decode Error: {}".format(e))
|
||||
return False
|
||||
except Exception as e:
|
||||
logerr(e)
|
||||
return False
|
||||
|
||||
else:
|
||||
try:
|
||||
with open(filepath, mode='r', encoding='utf-8') as infp:
|
||||
@ -2882,10 +2880,8 @@ def import_org(filepath, newtag):
|
||||
|
||||
def import_firefox_json(json, add_bookmark_folder_as_tag=False, unique_tag=None):
|
||||
"""Open Firefox json export file and import data.
|
||||
|
||||
Ignore 'SmartBookmark' and 'Separator' entries.
|
||||
|
||||
|
||||
Needed/used fields out of the JSON schema of the bookmarks:
|
||||
|
||||
title : the name/title of the entry
|
||||
|
Loading…
x
Reference in New Issue
Block a user