mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-03 03:40: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:
|
||||
psycopg2.extensions.cursor.execute(self, sql, args)
|
||||
except Exception, exc:
|
||||
except Exception as exc:
|
||||
logger.error("%s: %s" % (exc.__class__.__name__, exc))
|
||||
raise
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user