mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-03 03:40:09 +03:00
Merge a3dface309
into 767118467f
This commit is contained in:
commit
724204fd2f
|
@ -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