edx/edx-platform — pull request #4151 by tymofij (2014-06-18 15:38:31+00:00)
Title: Do not print exception message below stacktrace

0dbcf06280d8c79ca40c48f6d5f6a1ed521b0b8a introduced localized error messages when XML for ChoiceGroup is not right. We display them on top of the page, above the traceback. However, the traceback itself contains the message one more time, and this time unicode characters are not displayes as is, but presented as \uXXXX entities. Since that behavior seems to be intrinsic for traceback.format_exc() and we do not need the message there anyway, the patch hides it from display.

without patch:
![without-fix](https://cloud.githubusercontent.com/assets/123786/3306076/7082ea0c-f65d-11e3-9900-a14eaf41450a.png)

with patch:
![with-fix](https://cloud.githubusercontent.com/assets/123786/3306077/708499ec-f65d-11e3-8abf-330ae54330d8.png)

unicode traceback output example:

```python
# -*- coding: utf-8 -*-

import sys
import traceback

try:
raise Exception, u"мсж", sys.exc_info()[2]
except Exception as err:
# just the traceback
print ''.join(['Traceback (most recent call last):\n']+traceback.format_tb(sys.exc_info()[2]))
print
# traceback and message, \uXXXX
print traceback.format_exc()
```

pls review: @nedbat, @sarina, @polesye, @auraz, @olmar