syntax update

This commit is contained in:
Aleksandar Trifunovic 2016-05-20 15:21:14 +02:00
parent 732ea90a4f
commit a3dface309

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