0001-response-don-t-hide-email-traceback-when-the-sent-fa.patch
mandaye/response.py | ||
---|---|---|
74 | 74 |
exception: this exception instance if any """ |
75 | 75 |
if exception: |
76 | 76 |
tb_str = _get_traceback() |
77 |
if email: |
|
78 |
try: |
|
79 |
email.sent('internal server error %s' % exception, |
|
80 |
_get_text_error(tb_str, path, env=env)) |
|
81 |
except Exception as detail: |
|
82 |
logger.warning('Sent mail failed with error: %s' % detail) |
|
83 | 77 |
logger.exception("500 %s: %s, %s, env: %r" % (path, msg, tb_str, env)) |
78 |
if email: |
|
79 |
email.sent('internal server error %r', exception, |
|
80 |
_get_text_error(tb_str, path, env=env)) |
|
84 | 81 |
else: |
85 | 82 |
logger.error("500 %s: %s, env: %r" % (path, msg, env)) |
86 | 83 |
title = 'Internal Server Error' |
87 |
- |