mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When in debug mode, print the lookup name of the column with a template that is throwing an exception.
This commit is contained in:
parent
6a1f567b1f
commit
84b8b32866
@ -525,6 +525,8 @@ class TemplateFormatter(string.Formatter):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
if DEBUG: # and getattr(e, 'is_locking_error', False):
|
if DEBUG: # and getattr(e, 'is_locking_error', False):
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
if column_name:
|
||||||
|
print('Error evaluating column named: %s' % column_name)
|
||||||
ans = error_value + ' ' + e.message
|
ans = error_value + ' ' + e.message
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user