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