From cd6bf664b690df593630e72ea01b82585d30293c Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Fri, 23 Jan 2015 16:43:59 +0100 Subject: [PATCH] Improve exception handling of fix #79 --- account_easy_reconcile/easy_reconcile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_easy_reconcile/easy_reconcile.py b/account_easy_reconcile/easy_reconcile.py index 0471012a..b5beb30d 100644 --- a/account_easy_reconcile/easy_reconcile.py +++ b/account_easy_reconcile/easy_reconcile.py @@ -292,9 +292,9 @@ class AccountEasyReconcile(orm.Model): # stack trace and create an empty history line; otherwise, # the cron will just loop on this reconcile task. _logger.exception("The reconcile task %s had an exception: %s", - rec.name, e.args[1]) + rec.name, ", ".join(e.args)) message = "There was an error during reconciliation : %s" \ - % e.args[1] + % ", ".join(e.args) self.message_post(cr, uid, rec.id, body=message, context=context) self.pool.get('easy.reconcile.history').create(new_cr, uid, {