From a3dface30949f325f33ed713eb76aec274f00c33 Mon Sep 17 00:00:00 2001 From: Aleksandar Trifunovic Date: Fri, 20 May 2016 15:21:14 +0200 Subject: [PATCH] syntax update --- doc/src/advanced.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/advanced.rst b/doc/src/advanced.rst index f2e279f8..b03418c5 100644 --- a/doc/src/advanced.rst +++ b/doc/src/advanced.rst @@ -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