[FIX] bug with exception formating

bzr revid: christophe@tinyerp.com-20090109091201-58kfjqi23awrjbtz
This commit is contained in:
Christophe Simonis 2009-01-09 10:12:01 +01:00
parent f873421eb5
commit eab8eb27cb
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class OpenERPDispatcher:
self.log('result', result)
return result
except Exception, e:
self.log('exception', e)
self.log('exception', tools.exception_to_unicode(e))
tb = sys.exc_info()
tb_s = "".join(traceback.format_exception(*tb))
if tools.config['debug_mode']: