I\'m having problems with trying to catch an error. I\'m using Pyramid/SQLAlchemy and made a sign up form with email as the primary key. The problem is when a duplicate ema
What you need to do is catch a general exception and output its class; then you can make the exception more specific.
except Exception as ex: print ex.__class__