[python-win32] odbc exceptions

Robin Becker robin at reportlab.com
Wed Dec 1 18:13:05 CET 2010


On 01/12/2010 16:22, Preston Landers wrote:
> No, it appears you're getting a different (and expected) error now.
>
> "[ODBC Driver Manager] Data source name not found and no default driver
> specified in LOGIN"
>
> That means you didn't give a valid ODBC connection string when you tried to
> create a connection.   Earlier you were getting "TypeError: exceptions must
> be classes or instances, not str".  Try putting a valid connection string in
> your test.
>
> thanks,
> Preston
......
you're absolutely right, I must have been snow blind. The exception's no longer 
a string which is what we expect.
-- 
Robin Becker


More information about the python-win32 mailing list