mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 09:15:37 +01:00
Ignore corrupted reading rates json file
This commit is contained in:
parent
15d40ce3c1
commit
0d775490b0
1 changed files with 4 additions and 1 deletions
|
|
@ -68,5 +68,8 @@ def load_reading_rates(key):
|
|||
except OSError:
|
||||
existing = {}
|
||||
else:
|
||||
existing = json.loads(raw)
|
||||
try:
|
||||
existing = json.loads(raw)
|
||||
except Exception:
|
||||
existing = {}
|
||||
return existing.get(key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue