mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change the validation formatter to throw exceptions. As all uses of that formatter in base calibre expect exceptions, validation wasn't working.
This commit is contained in:
parent
19a2115618
commit
7416130dfc
@ -2035,7 +2035,7 @@ class ValidateFormatter(TemplateFormatter):
|
|||||||
|
|
||||||
def validate(self, x):
|
def validate(self, x):
|
||||||
from calibre.ebooks.metadata.book.base import Metadata
|
from calibre.ebooks.metadata.book.base import Metadata
|
||||||
return self.safe_format(x, {}, 'VALIDATE ERROR', Metadata(''))
|
return self.unsafe_format(x, {}, 'VALIDATE ERROR', Metadata(''))
|
||||||
|
|
||||||
|
|
||||||
validation_formatter = ValidateFormatter()
|
validation_formatter = ValidateFormatter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user