Re: Problem with error handling
От | Daniele Varrazzo |
---|---|
Тема | Re: Problem with error handling |
Дата | |
Msg-id | BANLkTik3tvFdAKHP8KkLr-9+_h4q9vfubw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Problem with error handling (Daniele Varrazzo <daniele.varrazzo@gmail.com>) |
Ответы |
Re: Problem with error handling
|
Список | psycopg |
On Sun, Apr 24, 2011 at 2:47 AM, Daniele Varrazzo <daniele.varrazzo@gmail.com> wrote: > On Sat, Apr 23, 2011 at 2:56 AM, Eric Snow <esnow@verio.net> wrote: >> * "exc" should have been calculated another way (like an else after the >> "if (code != NULL)") > > Definitely there should have been an else here: We check for the state > not null but then don't do anything as an alternative. I don't think > passing a NULL to psyco_set_error was ever intentional. Fixing in my > repos. I have fixed the issue <https://github.com/dvarrazzo/psycopg/commit/c08799b0>, but the error may be unhelpful if the libpq didn't provide a message either. Do you have a way to reproduce the bug so we can see if there is any other hint we can provide as exception message? If not, would you mind testing the patch and see if you get a reasonable error? Thanks, -- Daniele
В списке psycopg по дате отправления: