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:
Chris Drexler 2018-12-19 19:59:33 +01:00
parent 830436d30d
commit ccb40b5810

4
buku
View File

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