[sqlalchemy] Re: How to ignore primary key errors on insert

2008-05-07 Thread Alexis B
exceptions.IntegrityError, e: print Error !, e, well, I guess we'll ignore it. engine.execute(some_other_insert_statement ... ) On May 6, 2008, at 10:06 AM, Alexis B wrote: Hi to all, This may be a newbie question but I just can't find the answer. I have to make multiple submissions

[sqlalchemy] How to ignore primary key errors on insert

2008-05-06 Thread Alexis B
Hi to all, This may be a newbie question but I just can't find the answer. I have to make multiple submissions to a postgresql table and I want to use python. I found everything to execute my insert commands, the problem is that I have to repeat it regularly, and I expected not to check which