mysqldb duplicate entry error handling

Chris Mellon arkanes at gmail.com
Thu Feb 1 13:57:51 EST 2007


On 1 Feb 2007 10:51:09 -0800, baur79 <baur79 at gmail.com> wrote:
> now it gives this error
>
>     except IntegrityError, NameError:
> NameError: global name 'IntegrityError' is not defined
>
> any idea
> i have python 2.3.2 installed
>
IntegrityError will most likely be defined in the namespace of
whatever you're using for MySQL access.



More information about the Python-list mailing list