Skip to content Skip to sidebar Skip to footer

How To Catch Access Denied Errors While Using Sqlalchemy Library?

I am trying to catch the access denied errors while accessing mysql database using sqlalchemy, I can see the exception stack with exception being OperationalError(1045, 'Access den

Solution 1:

ex.message is str of ex.orig.args; the mysql error code can be found in err.orig.args[0].


Post a Comment for "How To Catch Access Denied Errors While Using Sqlalchemy Library?"