Catching Database Exceptions (Sybase)

Thomas Gagne tgagne at ix.netcom.com
Wed Dec 20 13:21:28 EST 2000


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






More information about the Python-list mailing list