mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 20:24:36 +01:00
Ignore corrupted conversion config files instead of failling to convert
See #1306854 (Error when trying to convert)
This commit is contained in:
parent
29fdb8dc62
commit
cd7da5743e
1 changed files with 3 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ def __str__(self):
|
|||
def from_string(self, raw):
|
||||
try:
|
||||
d = eval(raw)
|
||||
except SyntaxError:
|
||||
except (SyntaxError, TypeError):
|
||||
d = None
|
||||
if d:
|
||||
self.update(d)
|
||||
|
|
@ -89,7 +89,8 @@ def merge_recommendations(self, get_option, level, options,
|
|||
if only_existing and name not in self:
|
||||
continue
|
||||
opt = get_option(name)
|
||||
if opt is None: continue
|
||||
if opt is None:
|
||||
continue
|
||||
if opt.level == OptionRecommendation.HIGH:
|
||||
self[name] = opt.recommended_value
|
||||
self.disabled_options.add(name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue