PyGreSQL pg.error Exception - Mailing list pgsql-interfaces

From Denis Gasparin
Subject PyGreSQL pg.error Exception
Date
Msg-id 5.1.0.14.0.20010703102711.00ad9d10@10.1.1.2
Whole thread Raw
Responses Re: PyGreSQL pg.error Exception  (Jason Earl <jdearl@yahoo.com>)
List pgsql-interfaces
Hi to all!        In the documentation of the PyGreSQL module it is said that a 
pg.error exception is thrown when pg.connect or other pg functions cause an 
error. How can i get the value of the error? I have tried print pg.error in 
the except clause but i get only a _pg.error value...

For example:
try:        db = pg.connect( connection parameters);
except pg.error:        print pg.error;

This prints "_pg.error"...

Thanks in advance for your replies,

Denis




pgsql-interfaces by date:

Previous
From: Christian Ullrich
Date:
Subject: Re: libpq++ on Windows
Next
From: Sudheer Palapparambil
Date:
Subject: PROCEDURE EXECUTION