mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Regression fix for #79
- Fix error logs that tried to access inexistant attribute.
This commit is contained in:
@@ -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.value)
|
||||
rec.name, e.args[1])
|
||||
message = "There was an error during reconciliation : %s" \
|
||||
% e.value
|
||||
% e.args[1]
|
||||
self.message_post(cr, uid, rec.id,
|
||||
body=message, context=context)
|
||||
self.pool.get('easy.reconcile.history').create(new_cr, uid, {
|
||||
|
||||
Reference in New Issue
Block a user