Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed sending mail on 404s to fail silently.

A failure in the e-mail system should not turn a 404 into a 500.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c0dd2babb153f1c82bd38f211a32602620dce177 1 parent 30fbe92
Luke Plant spookylukey authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/middleware/
3  django/middleware/
@@ -104,7 +104,8 @@ def process_response(self, request, response):
ip = request.META.get('REMOTE_ADDR', '<none>')
mail_managers("Broken %slink on %s" % ((is_internal and 'INTERNAL ' or ''), domain),
"Referrer: %s\nRequested URL: %s\nUser agent: %s\nIP address: %s\n" \
- % (referer, request.get_full_path(), ua, ip))
+ % (referer, request.get_full_path(), ua, ip),
+ fail_silently=True)
return response
# Use ETags, if requested.
Please sign in to comment.
Something went wrong with that request. Please try again.