mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-04 04:10:09 +03:00
syntax update
This commit is contained in:
parent
732ea90a4f
commit
a3dface309
|
@ -72,7 +72,7 @@ An example of cursor subclass performing logging is::
|
||||||
|
|
||||||
try:
|
try:
|
||||||
psycopg2.extensions.cursor.execute(self, sql, args)
|
psycopg2.extensions.cursor.execute(self, sql, args)
|
||||||
except Exception, exc:
|
except Exception as exc:
|
||||||
logger.error("%s: %s" % (exc.__class__.__name__, exc))
|
logger.error("%s: %s" % (exc.__class__.__name__, exc))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user