mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -78,7 +78,7 @@ class GuiRecommendations(dict):
|
||||
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 @@ class GuiRecommendations(dict):
|
||||
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…
x
Reference in New Issue
Block a user