Is there any way to "tell" Django when to send emails to admins and when not? For instance, I'd like to not send an email when a DatabaseError exception is thrown.
I thought of creating a middleware and return None if exception was of type DatabaseError, but I believe that'd just cause to call the default handler.
Any insight or suggestion to achieve this and avoid cluttering admins' inboxes :) ?