This commit is contained in:
Aleksandar Trifunovic 2017-06-05 13:51:58 +00:00 committed by GitHub
commit 724204fd2f

View File

@ -72,7 +72,7 @@ An example of cursor subclass performing logging is::
try:
psycopg2.extensions.cursor.execute(self, sql, args)
except Exception, exc:
except Exception as exc:
logger.error("%s: %s" % (exc.__class__.__name__, exc))
raise