Catching errors in Python

This has been changed in Ignition - all database errors can now be caught and handled via Python exception handling.