diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-01-05 08:13:03 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-01-05 08:13:03 +0000 |
| commit | 96ff591d7996e05b25be0afa5d999bb6028255e1 (patch) | |
| tree | 7bc752fd31c984033a659fc332895e98df56fd2b /psycopg/microprotocols.c | |
| parent | d5674253ca184e9ddedec34a3475104dbc6e2962 (diff) | |
| download | psycopg2-96ff591d7996e05b25be0afa5d999bb6028255e1.tar.gz | |
Extra attributes for ProgrammingError exception.
Diffstat (limited to 'psycopg/microprotocols.c')
| -rw-r--r-- | psycopg/microprotocols.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/microprotocols.c b/psycopg/microprotocols.c index 4f97279..73abbfc 100644 --- a/psycopg/microprotocols.c +++ b/psycopg/microprotocols.c @@ -108,7 +108,7 @@ microprotocols_adapt(PyObject *obj, PyObject *proto, PyObject *alt) } /* else set the right exception and return NULL */ - PyErr_SetString(ProgrammingError, "can't adapt"); + psyco_set_error(ProgrammingError, NULL, "can't adapt", NULL, NULL); return NULL; } |
