Fix loading of metadata cache from device broken in calibre 5

This commit is contained in:
Kovid Goyal 2020-12-16 19:45:02 +05:30
parent ff87e15bbb
commit 966faf7dce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -176,7 +176,7 @@ class JsonCodec(object):
def decode_from_file(self, file_, booklist, book_class, prefix):
js = []
try:
js = json.load(file_, encoding='utf-8')
js = json.load(file_)
for item in js:
entry = self.raw_to_book(item, book_class, prefix)
if entry is not None: