Skip to content

Commit

Permalink
Map LOCK_DEADLOCK error to OperationalError (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jun 27, 2018
1 parent 83a8c92 commit 58276d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymysql/err.py
Expand Up @@ -91,7 +91,7 @@ def _map_error(exc, *errors):
ER.NOT_SUPPORTED_YET, ER.FEATURE_DISABLED, ER.UNKNOWN_STORAGE_ENGINE)
_map_error(OperationalError, ER.DBACCESS_DENIED_ERROR, ER.ACCESS_DENIED_ERROR,
ER.CON_COUNT_ERROR, ER.TABLEACCESS_DENIED_ERROR,
ER.COLUMNACCESS_DENIED_ERROR, ER.CONSTRAINT_FAILED)
ER.COLUMNACCESS_DENIED_ERROR, ER.CONSTRAINT_FAILED, ER.LOCK_DEADLOCK)


del _map_error, ER
Expand Down

0 comments on commit 58276d1

Please sign in to comment.