summaryrefslogtreecommitdiff
path: root/psycopg/psycopgmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'psycopg/psycopgmodule.c')
-rw-r--r--psycopg/psycopgmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index 60fec50..7d77ee1 100644
--- a/psycopg/psycopgmodule.c
+++ b/psycopg/psycopgmodule.c
@@ -596,10 +596,11 @@ psyco_errors_set(PyObject *type)
}
}
-/* psyco_error_new
+/* psyco_set_error
Create a new error of the given type with extra attributes. */
+CPYCHECKER_SETS_EXCEPTION
void
psyco_set_error(PyObject *exc, cursorObject *curs, const char *msg,
const char *pgerror, const char *pgcode)