mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Clearer explanation when exception has no message
"No exception supplied" is misleading; actually there is an exception, but there's no message string.
This commit is contained in:
@@ -128,7 +128,7 @@ class ExceptionReporterTests(TestCase):
|
||||
reporter = ExceptionReporter(request, None, None, None)
|
||||
html = reporter.get_traceback_html()
|
||||
self.assertIn('<h1>Report at /test_view/</h1>', html)
|
||||
self.assertIn('<pre class="exception_value">No exception supplied</pre>', html)
|
||||
self.assertIn('<pre class="exception_value">No exception message supplied</pre>', html)
|
||||
self.assertIn('<th>Request Method:</th>', html)
|
||||
self.assertIn('<th>Request URL:</th>', html)
|
||||
self.assertNotIn('<th>Exception Type:</th>', html)
|
||||
|
||||
Reference in New Issue
Block a user