diff --git a/doc/src/module.rst b/doc/src/module.rst index 821fd3cf..5793b1ca 100644 --- a/doc/src/module.rst +++ b/doc/src/module.rst @@ -184,7 +184,7 @@ available through the following exceptions: >>> try: ... cur.execute("SELECT * FROM barf") - ... except psycopg2.Error, e: + ... except psycopg2.Error as e: ... pass >>> e.diag.severity