PyGreSQL pg.error Exception

From: Denis Gasparin <denis(at)edinet(dot)it>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: PyGreSQL pg.error Exception
Date: 2001-07-03 08:33:23
Message-ID: 5.1.0.14.0.20010703102711.00ad9d10@10.1.1.2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message David Stanaway 2001-07-03 09:05:05 indexing arrays in pgaccess's query interface is failing
Previous Message Paul Grenda 2001-07-03 08:33:07 Re: JDBC JBuilder Professional