wcs-olap: handle unicode in exceptions when printing traceback
This commit is contained in:
parent
0522eacaf4
commit
b313b03884
|
@ -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
|
||||
|
|
Reference in New Issue