summaryrefslogtreecommitdiff
path: root/django/utils/log.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-01-21 20:27:38 +0100
committerClaude Paroz <claude@2xlibre.net>2013-01-21 20:32:36 +0100
commitc6e0dedbdb22f4db6577886a2b67e5423684fe7f (patch)
tree956ef268cb422fd2fd143c7992129bbd7643956f /django/utils/log.py
parent7aa538357c8d94df3d5811706bf6dfe5d21421ca (diff)
Fixed #19637 -- Ensured AdminEmailHandler fails silently
Thanks lsaffre for the report. Refs #19325.
Diffstat (limited to 'django/utils/log.py')
-rw-r--r--django/utils/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/log.py b/django/utils/log.py
index 292bd0794c..b291b86706 100644
--- a/django/utils/log.py
+++ b/django/utils/log.py
@@ -117,7 +117,7 @@ class AdminEmailHandler(logging.Handler):
connection=self.connection())
def connection(self):
- return get_connection(backend=self.email_backend)
+ return get_connection(backend=self.email_backend, fail_silently=True)
def format_subject(self, subject):
"""