mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore corrupted reading rates json file
This commit is contained in:
parent
15d40ce3c1
commit
0d775490b0
@ -68,5 +68,8 @@ def load_reading_rates(key):
|
||||
except OSError:
|
||||
existing = {}
|
||||
else:
|
||||
try:
|
||||
existing = json.loads(raw)
|
||||
except Exception:
|
||||
existing = {}
|
||||
return existing.get(key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user