[DB-SIG] newbie question on trapping a DB error message using psycopg2 / DB-API

2008-10-03 Thread Chris Wood
If I run a python program that calls a stored procedure without a "try:" , I see a descriptive message in the error that is returned (highlighted inyellowbelow): >>> cur.execute("select * from f_test_return_error2('normon')") Traceback (most recent call last): File "", line 1, in ? File "/usr/

Re: [DB-SIG] newbie question on trapping a DB error message using psycopg2 / DB-API

2008-10-03 Thread Carsten Haese
2008/10/3 Chris Wood <[EMAIL PROTECTED]> > If I run a python program that calls a stored procedure without a "try:" , > I see a descriptive message in the error that is returned (highlighted > inyellowbelow): > > >>> cur.execute("select * from f_test_return_error2('normon')") > Traceback (most re