Disable Red Error Window

I hope this is clearer.

  1. See the example code at Anvil Docs | Error Reporting.
  2. Copy those three lines of code to the bottom of your Startup Form’s Python code. Or, if you have a Startup Module (instead of a Startup Form), copy them to the bottom of the Startup Module’s Python code.

You can change the name error_handler (in both places where it appears).

You can change what the error_handler function does, as you see fit.

1 Like