04-15-2021, 10:50 PM
To be honest, I don't know because it appears to be a Mako bug. The code I posted above is supposed to be the correct way to extract the error from Mako.
88 print(exceptions.text_error_template().render())
This is the correct way to print out the error for a Mako template, however, render function appears to cause a stack trace. I can try and upgrade make to a later version. In my local environment, I installed this:
https://pypi.org/project/Mako/#files
and am checking it out.
I found that the Custom Widgets do actually print out the line number such as:
Reported Error: "(SyntaxError) invalid syntax (, line 16)
I am not sure why your error does not print out the line number.
88 print(exceptions.text_error_template().render())
This is the correct way to print out the error for a Mako template, however, render function appears to cause a stack trace. I can try and upgrade make to a later version. In my local environment, I installed this:
https://pypi.org/project/Mako/#files
and am checking it out.
I found that the Custom Widgets do actually print out the line number such as:
Reported Error: "(SyntaxError) invalid syntax (, line 16)
I am not sure why your error does not print out the line number.