Except MySQL error
FBatista at uniFON.com.ar
Thu Jun 24 15:35:21 CEST 2004
#- 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...
Well, using the SAME python and MySQLdb installation...
...with MySQL 3.1, it was a warning so the program wouldn't stop.
...with MySQL 4.0, it was an error so an Exception was generated.
More information about the Python-list