Remove blank lines

This commit is contained in:
Arun Prakash Jana 2018-12-28 18:21:54 +05:30
parent 940d3e1642
commit 89c6578078
No known key found for this signature in database
GPG Key ID: A75979F35C080412

4
buku
View File

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