Skip to content

Instantly share code, notes, and snippets.

View WellingtonFonseca's full-sized avatar
😁

Wellington Fonseca WellingtonFonseca

😁
View GitHub Profile
@shuson
shuson / description-mysql_weakly-referenced object
Last active April 26, 2024 13:04
weakly-referenced object when connect to mysql in python
I came across this issue using the following code file
the error message is ReferenceError: weakly-referenced object no longer exists
reason is in the mysql/connector/cursor.py file
see these lines:
def _set_connection(self, connection):
"""Set the connection"""
try: