mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8887b7f057
commit
16cf2f86fa
@ -74,9 +74,10 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
|
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
try:
|
try:
|
||||||
with open(P('template-functions.json'), 'rb') as f:
|
json.loads(P('template-functions.json', data=True,
|
||||||
self.builtin_source_dict = json.load(f, encoding='utf-8')
|
allow_user_override=False).decode('utf-8'))
|
||||||
except:
|
except:
|
||||||
|
traceback.print_exc()
|
||||||
self.builtin_source_dict = {}
|
self.builtin_source_dict = {}
|
||||||
|
|
||||||
self.funcs = formatter_functions.get_functions()
|
self.funcs = formatter_functions.get_functions()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user