From b932936597eaeb21659eda484c9c614758e6c042 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Thu, 26 Feb 2015 11:50:11 +0000 Subject: [PATCH] update exception to 'as' syntax --- kippo/dblog/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kippo/dblog/mysql.py b/kippo/dblog/mysql.py index 0e049a46..285d45dc 100644 --- a/kippo/dblog/mysql.py +++ b/kippo/dblog/mysql.py @@ -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))