[DB-SIG] mxODBC

M.-A. Lemburg mal@lemburg.com
Sat, 19 May 2001 23:04:36 +0200


Dennis Baker wrote:
> 
> I'm having a problem trapping mxODBC.Warning,  I've tried :
> 
> except mx.odbc.Windows.error.Warning:
> 
> and
> 
> except mx.odbc.Windows.error:
> 
> I've read the mxODBC web page and I really don't want to recompile mxODBC,  is that the only option?

The correct exception object is:

	mx.ODBC.Windows.Warning

(each mxODBC subpackages has its own set of exceptions)

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/