From 997f92aaabcda41494bd90899f81780b64d9105b Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Tue, 13 Dec 2016 12:21:37 +0100 Subject: [PATCH] Rename builtin id variable --- attachment_s3/models/ir_attachment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attachment_s3/models/ir_attachment.py b/attachment_s3/models/ir_attachment.py index 90ed650..4cacf2c 100644 --- a/attachment_s3/models/ir_attachment.py +++ b/attachment_s3/models/ir_attachment.py @@ -253,7 +253,8 @@ class IrAttachment(models.Model): attachment = attachment_model_env.browse(attachment_id) attachment._move_attachment_to_s3() except psycopg2.OperationalError: - _logger.error('Could not migrate attachment %s to S3', id) + _logger.error('Could not migrate attachment %s to S3', + attachment_id) @contextmanager def do_in_new_env(self, new_cr=False):