python - Alerting the cgitb error? -


is there possibility check if cgitb has reported error or print variable / file error? want check because though request python file successful, cgitb has reported error , script won't work intended want alert on page.

your script should try / except catch error, , handle desired, such including error on page, and/or calling cgitb.handler((ex_type, ex_val, tb)). or interpose own handler.

see logdir parameter enable() accepts: https://python.readthedocs.io/en/latest/library/cgitb.html


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -