This commit is contained in:
Michel Oosterhof
2015-05-12 04:57:45 +00:00
parent 9f522054ed
commit a6e64f29e5

View File

@@ -21,7 +21,7 @@ class ReconnectingConnectionPool(adbapi.ConnectionPool):
return adbapi.ConnectionPool._runInteraction(
self, interaction, *args, **kw)
except MySQLdb.OperationalError as e:
if e[0] not in (2006, 2013):
if e[0] not in (2003, 2006, 2013):
raise
log.msg("RCP: got error %s, retrying operation" %(e))
conn = self.connections.get(self.threadID())