I've got a program that gets some python code from the user and executes it. The problem is that if an error occurs, an error is raised.
Is there a way to catch if an error occurred, and if it has, just print it instead of raise it?
I want to really know the whole message that's raised, if that's possible.
I'm using python 2.7.9 on osx Yosemite.