wcs-olap: handle unicode in exceptions when printing traceback

This commit is contained in:
Benjamin Dauvergne 2016-05-25 10:54:17 +02:00
parent 0522eacaf4
commit b313b03884
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import linecache
def print_tb():
exc_type, exc_value, tb = sys.exc_info()
if exc_value:
exc_value = unicode(str(exc_value), errors='ignore')
exc_value = unicode(str(exc_value), errors='ignore').encode('utf-8')
error_file = StringIO()
limit = None