mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Nicer error message when template not specified
This commit is contained in:
parent
ce873c757a
commit
199b435464
@ -74,6 +74,9 @@ def implementation(
|
|||||||
data[field] = {k: v.get('isbn') or '' for k, v in iteritems(x)}
|
data[field] = {k: v.get('isbn') or '' for k, v in iteritems(x)}
|
||||||
continue
|
continue
|
||||||
if field == 'template':
|
if field == 'template':
|
||||||
|
if not template:
|
||||||
|
data['template'] = _('Template not allowed') if is_remote else _('No template specified')
|
||||||
|
continue
|
||||||
vals = {}
|
vals = {}
|
||||||
global_vars = {}
|
global_vars = {}
|
||||||
if formatter is None:
|
if formatter is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user