Catching Database Exceptions (Sybase)
Thomas Gagne
tgagne at ix.netcom.com
Wed Dec 20 13:21:28 EST 2000
More information about the Python-list mailing list
Wed Dec 20 13:21:28 EST 2000
- Previous message (by thread): Catching Database Exceptions (Sybase)
- Next message (by thread): Catching Database Exceptions (Sybase)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Just to keep checking..
.. I deliberately used a procedure I know didn't exist. This time it seems as
though it tried to test the exceptions:
Traceback (innermost last):
File ".//floater.py", line 50, in ?
except Warning, env:
NameError: Warning
The DB API 2.0 documentation suggested that all database warnings and errors
should be subclasses of Error and Warning. Is there something I'm supposed to
be importing to make this work, or to define these objects?
--
.tom
- Previous message (by thread): Catching Database Exceptions (Sybase)
- Next message (by thread): Catching Database Exceptions (Sybase)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list