mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Ignore failure to unpickle stored conversion options
This commit is contained in:
parent
826b1855f5
commit
e861c5b61a
@ -1695,7 +1695,11 @@ class DB(object):
|
||||
def conversion_options(self, book_id, fmt):
|
||||
for (data,) in self.conn.get('SELECT data FROM conversion_options WHERE book=? AND format=?', (book_id, fmt.upper())):
|
||||
if data:
|
||||
try:
|
||||
return safe_pickle.loads(bytes(data))
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
def has_conversion_options(self, ids, fmt='PIPE'):
|
||||
ids = frozenset(ids)
|
||||
|
Loading…
x
Reference in New Issue
Block a user