FIX(buku) JSONDecodeError only avail from py3.5 on
- replace exception handling with parent class ValueError which is avail also prior to 3.5
This commit is contained in:
parent
830436d30d
commit
ccb40b5810
4
buku
4
buku
@ -2391,8 +2391,8 @@ class BukuDb:
|
||||
|
||||
items = import_firefox_json(data, add_bookmark_folder_as_tag, newtag)
|
||||
|
||||
except json.decoder.JSONDecodeError as e:
|
||||
logerr("JSONDecodeError: {}".format(e))
|
||||
except json.decoder.ValueError as e:
|
||||
logerr("JSON Decode Error: {}".format(e))
|
||||
return False
|
||||
except Exception as e:
|
||||
logerr(e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user