Skip to content

Commit 863cc83

Browse files
committed
Revert "Raise DatabaseError instead of OperationalError."
This reverts commit 5f56c70. It breaks more than it fixes...
1 parent 5f56c70 commit 863cc83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

MySQLdb/connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def _exception(self):
9696
elif err < 1000:
9797
err_cls = self.InternalError
9898
else:
99-
err_cls = self.DatabaseError
100-
99+
err_cls = self.OperationalError
101100
raise err_cls(err, libmysql.c.mysql_error(self._db))
102101

103102
@property

0 commit comments

Comments
 (0)