[FIX] use string representation of the exception

This commit is contained in:
Benoit Guillot
2013-06-05 16:52:39 +02:00
parent d4fd258af3
commit 7becade14d

View File

@@ -377,9 +377,9 @@ class AccountBankStatement(Model):
if res:
compl_lines += 1
except ErrorTooManyPartner, exc:
msg += exc.message + "\n"
msg += unicode(exc) + "\n"
except Exception, exc:
msg += exc.message + "\n"
msg += unicode(exc) + "\n"
# vals = res and res.keys() or False
if res:
vals = res[line.id]