diff options
Diffstat (limited to 'django/core/handlers/modpython.py')
| -rw-r--r-- | django/core/handlers/modpython.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index 9d74eee59a..0ab186eb01 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -258,9 +258,9 @@ class ModPythonHandler: Returns an HttpResponse that displays a TECHNICAL error message for a fundamental database or coding error. """ - error_string = "<pre>There's been an error:\n\n%s</pre>" % self._get_traceback() + error_string = "There's been an error:\n\n%s" % self._get_traceback() responseClass = is404 and httpwrappers.HttpResponseNotFound or httpwrappers.HttpResponseServerError - return responseClass(error_string) + return responseClass(error_string, mimetype='text/plain') def _get_traceback(self): "Helper function to return the traceback as a string" |
