I wonder if there is a way to capture the exception information when running a Python script, besides using try-except statements?
My Python script is subject to constant change by different people. Errors can occur anywhere inside the file, either a syntax or value error.
I want to be able to interpret the exception information and provide custom error messages to people, for friendly reminding.
I don't want, or couldn't afford, to include all code lines into the try statement. Just wonder if I can have custom error message displayed whenever there is an exception raised.
Thank you for helping out here!
Regards, Paul
try? Having an application with unhandled exceptions? And BTW if someone supplies code with a SyntaxError he has never run it and your development process are not what they should be.