Reviewers: ,
Please review this at http://codereview.tryton.org/**185001/<http://codereview.tryton.org/185001/> Affected files: M trytond/protocols/jsonrpc.py Index: trytond/protocols/jsonrpc.py ==============================**==============================**======= --- a/trytond/protocols/jsonrpc.py +++ b/trytond/protocols/jsonrpc.py @@ -111,13 +111,9 @@ ConcurrencyException), exception: response['error'] = exception.args except Exception: - tb_s = '' + tb_s = u'' for line in traceback.format_exception(***sys.exc_info()): - try: - line = line.encode('utf-8', 'ignore') - except Exception: - continue - tb_s += line + tb_s += unicode(line, 'utf-8') for path in sys.path: tb_s = tb_s.replace(path, '') if CONFIG['debug_mode']: -- [email protected] mailing list
