oracle / python-cx_Oracle

Python interface to Oracle Database now superseded by python-oracledb
https://oracle.github.io/python-cx_Oracle
Other
890 stars 361 forks source link

Deadlock error as explicit exception #626

Open ancc opened 2 years ago

ancc commented 2 years ago

Is it possible to add deadlock exception as similarly there's IntegrityError?

Then it's simple to catch it and retry the operation. try: ... except cx_Oracle.DeadlockError: ...