Traceback in log with custom error page #5013
davetapley
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @davetapley, The current behavior is by design. The NiceGUI With To avoid the default behavior of logging the traceback, you can clear the default handler like this: app._exception_handlers.clear() Note that this is an undocumented private API which could change anytime in the future. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if by design, but if you run the example for a custom error page you will still get a traceback in the log:
It happened in my app and I was confused for a few moments, I feel like having an
on_page_exception
should count as 'catching' the exception (especially since you can re-raise within the custom page)?Beta Was this translation helpful? Give feedback.
All reactions