mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
fix FrameSummary replacement
This commit is contained in:
parent
8b3aeb43bb
commit
3c20c32676
@ -1647,8 +1647,9 @@ class TemplateFormatter(string.Formatter):
|
||||
if getattr(e, 'is_internal', False):
|
||||
# Exception raised by FormatterFuncsCaller
|
||||
# get the line inside the current template instead of the FormatterFuncsCaller
|
||||
for ss in reversed(traceback.extract_tb(exc_info()[2])):
|
||||
if ss.filename == '<string>':
|
||||
for s in reversed(traceback.extract_tb(exc_info()[2])):
|
||||
if s.filename == '<string>':
|
||||
ss = s
|
||||
break
|
||||
|
||||
raise ValueError(_('Error in function {0} on line {1} : {2} - {3}').format(
|
||||
|
Loading…
x
Reference in New Issue
Block a user