Re: Handling IntegrityError on transaction middleware commit

2009-11-28 Thread Karen Tracey
On Fri, Nov 27, 2009 at 6:35 AM, Ryan wrote: > I realize that I should be validating my data before saving it, but > I'll admit I don't guard against every eventuality. My question is, > should I be doing something in my code to prevent this kind of poor > exception handling, or should I file a

Handling IntegrityError on transaction middleware commit

2009-11-27 Thread Ryan
I had an IntegrityError come up on transaction commit (using postgres) today on a production site -- trying to insert an invalid foreign key value (an admin deleted something she shouldn't have). The problem was that instead of emailing me the exception like usual, django logged the exception to m