mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Prevent errors in tweaks.py from preventing calibre startup
This commit is contained in:
parent
28a07b0727
commit
9709efaba9
@ -637,7 +637,11 @@ def default_tweaks_raw():
|
|||||||
|
|
||||||
def read_tweaks():
|
def read_tweaks():
|
||||||
default_tweaks = exec_tweaks(default_tweaks_raw())
|
default_tweaks = exec_tweaks(default_tweaks_raw())
|
||||||
default_tweaks.update(read_custom_tweaks())
|
try:
|
||||||
|
custom_tweaks = read_custom_tweaks()
|
||||||
|
except Exception:
|
||||||
|
custom_tweaks = {}
|
||||||
|
default_tweaks.update(custom_tweaks)
|
||||||
return default_tweaks
|
return default_tweaks
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user