The issue was solved in v0.7.11, please update the package. Long running queries throw error at the very end as conection to the database could not be closed properly. See https://phabricator.wikimedia.org/T216741 and https://github.com/PyMySQL/PyMySQL/commit/0e01158fb8a204144c5adddde983bea2b3e4ff93 for more details
The issue was solved in v0.7.11, please update the package. Long running queries throw error at the very end as conection to the database could not be closed properly. See https:/ /phabricator. wikimedia. org/T216741 and https:/ /github. com/PyMySQL/ PyMySQL/ commit/ 0e01158fb8a2041 44c5adddde983be a2b3e4ff93 for more details