|
From: Oleg B. <ph...@ph...> - 2013-09-15 13:52:35
|
On Fri, Sep 13, 2013 at 11:40:09AM -0300, Francisco Chiotta <fra...@gm...> wrote:
> It would be great. Sure, I can test the results.
The patch is attached. The code and error string are available:
try:
do_something()
except OperationalError, e:
print e.args[0].code
print e.args[0].error
Doesn't work for me, though -- pgcode/pgerror are always None.
Perhaps I'm using old version of psycopg2 -- 2.4.5.
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|