8000 Map LOCK_DEADLOCK error to OperationalError (#693) · jiangsanyin/PyMySQL@58276d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58276d1

Browse files
authored
Map LOCK_DEADLOCK error to OperationalError (PyMySQL#693)
1 parent 83a8c92 commit 58276d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysql/err.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _map_error(exc, *errors):
9191
ER.NOT_SUPPORTED_YET, ER.FEATURE_DISABLED, ER.UNKNOWN_STORAGE_ENGINE)
9292
_map_error(OperationalError, ER.DBACCESS_DENIED_ERROR, ER.ACCESS_DENIED_ERROR,
9393
ER.CON_COUNT_ERROR, ER.TABLEACCESS_DENIED_ERROR,
94-
ER.COLUMNACCESS_DENIED_ERROR, ER.CONSTRAINT_FAILED)
94+
ER.COLUMNACCESS_DENIED_ERROR, ER.CONSTRAINT_FAILED, ER.LOCK_DEADLOCK)
9595

9696

9797
del _map_error, ER

0 commit comments

Comments
 (0)
0