update exception to 'as' syntax

This commit is contained in:
Michel Oosterhof 2015-02-26 11:50:11 +00:00
parent f1bcd95bf2
commit b932936597
1 changed files with 1 additions and 1 deletions

View File

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