Fixed regression introduced by the fix in ticket :ticket:`10492` when using
pool pre-ping with PyMySQL version older than 1.0.
Fixes: #10650
Change-Id: Ic0744c8b6f91cc39868e31c3bfddb8df20c7dfbb
--- /dev/null
+.. change::
+ :tags: bug, mysql
+ :tickets: 10650
+ :versions: 2.0.24
+
+ Fixed regression introduced by the fix in ticket :ticket:`10492` when using
+ pool pre-ping with PyMySQL version older than 1.0.
""" # noqa: E501
try:
- Connection = __import__("pymysql.connections").Connection
+ Connection = __import__(
+ "pymysql.connections"
+ ).connections.Connection
except (ImportError, AttributeError):
return True
else: