I double checked, the class of the exception is cx_Oracle.DatabaseError. I sent an e-mail to the cx_Oracle mailing list about this, I'll let you know what they have to say.

Can you also double check if it's really a DatabaseError and maybe ask
the cx_Oracle folks whether this is intended? I currently only see they
raise InterfaceErrors which would also be a problem: