mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Errors args are not always string.
This commit is contained in:
@@ -291,10 +291,11 @@ class AccountEasyReconcile(orm.Model):
|
|||||||
# In case of error, we log it in the mail thread, log the
|
# In case of error, we log it in the mail thread, log the
|
||||||
# stack trace and create an empty history line; otherwise,
|
# stack trace and create an empty history line; otherwise,
|
||||||
# the cron will just loop on this reconcile task.
|
# the cron will just loop on this reconcile task.
|
||||||
_logger.exception("The reconcile task %s had an exception: %s",
|
_logger.exception(
|
||||||
rec.name, ", ".join(e.args))
|
"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" \
|
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,
|
self.message_post(cr, uid, rec.id,
|
||||||
body=message, context=context)
|
body=message, context=context)
|
||||||
self.pool.get('easy.reconcile.history').create(new_cr, uid, {
|
self.pool.get('easy.reconcile.history').create(new_cr, uid, {
|
||||||
|
|||||||
Reference in New Issue
Block a user