You're not making any sense. How did you determine that ProgrammingError
is not an error or that it's not the "real error"? Show us the code you
ran, the output you expected, and the output it produced instead.
Blind guess: You're using "except ProgrammingError" when you should be
using "except MySQLdb.ProgrammingError". If this guess is incorrect, see
above.
--
Carsten Haese
http://informixdb.sourceforge.net
As the traceback says, "Table 'test.productsAssociations' doesn't
exist", and that's the cause.
Just because it's not in the current namespace doesn't mean it's not
an error. From PEP 249 (the db api v2) :
ProgrammingError
Exception raised for programming errors, e.g. table not
found or already exists, syntax error in the SQL
statement, wrong number of parameters specified, etc. It
must be a subclass of DatabaseError.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>