Except MySQL error
dyoo at hkn.eecs.berkeley.edu
Tue Jun 22 00:09:27 CEST 2004
Florian Lindner <Florian.Lindner at xgm.de> wrote:
: I want to except the error which is raised in MySQLdb module when one is
: trying to insert a value in a primary key column which already exists. But
: I don't know which error to except...
According to the Python Database API:
you can expect a subclass of IntegrityError.
Hope this helps!
More information about the Python-list