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
Post a Comment