mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-07-30 12:57:47 +00:00
Changed error message for closed connection
Since SQLALchemy test suite checks for the word 'Invalid' we changed the error message for closed connections back to "Invalid connection or not connected"
This commit is contained in:
@ -41,7 +41,7 @@ class Connection(mariadb._mariadb.connection):
|
||||
|
||||
def _check_closed(self):
|
||||
if self._closed:
|
||||
raise mariadb.ProgrammingError("Connection is closed")
|
||||
raise mariadb.ProgrammingError("Invalid connection or not connected")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user