From 1ee3287df7eb85ae0212aaf05d18dc597806cbac Mon Sep 17 00:00:00 2001 From: ecino Date: Wed, 4 Feb 2015 12:04:12 +0100 Subject: [PATCH] Errors args are not always string. --- account_easy_reconcile/easy_reconcile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/account_easy_reconcile/easy_reconcile.py b/account_easy_reconcile/easy_reconcile.py index b5beb30d..c94ddc1d 100644 --- a/account_easy_reconcile/easy_reconcile.py +++ b/account_easy_reconcile/easy_reconcile.py @@ -291,10 +291,11 @@ class AccountEasyReconcile(orm.Model): # In case of error, we log it in the mail thread, log the # 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, ", ".join(e.args)) + _logger.exception( + "The reconcile task %s had an exception: %s", + rec.name, ", ".join([str(error) for error in e.args])) message = "There was an error during reconciliation : %s" \ - % ", ".join(e.args) + % ", ".join([str(error) for error in e.args]) self.message_post(cr, uid, rec.id, body=message, context=context) self.pool.get('easy.reconcile.history').create(new_cr, uid, {