Catch Exception raised from python
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hi,
I would like to know what would be the best practice for handling exceptions raised from within a Python script, to handle in the main C++ program?
So far, I would return some coded string through StdOut/StdErr and try to deal with it with a huge if/elseif/elseif.../else command, but that does not sound the best option...
Thanks,
Emmanuel