This commit is contained in:
Michel Oosterhof
2018-07-11 12:36:37 +04:00
parent 1db627b7f8
commit 5438fd6a73

View File

@ -34,7 +34,8 @@ class ReconnectingConnectionPool(adbapi.ConnectionPool):
self, interaction, *args, **kw) self, interaction, *args, **kw)
except MySQLdb.OperationalError as e: except MySQLdb.OperationalError as e:
if e[0] not in (2003, 2006, 2013): if e[0] not in (2003, 2006, 2013):
raise log.msg("RCP: got error {0}, retrying operation".format(e)) log.msg("RCP: got error {0}, retrying operation".format(e))
raise e
conn = self.connections.get(self.threadID()) conn = self.connections.get(self.threadID())
self.disconnect(conn) self.disconnect(conn)
# Try the interaction again # Try the interaction again