diff --git a/connector/components/binder.py b/connector/components/binder.py index 9a574875a..292552ecf 100644 --- a/connector/components/binder.py +++ b/connector/components/binder.py @@ -141,6 +141,7 @@ def unwrap_model(self): column = self.model._fields[self._odoo_field] except KeyError as err: raise ValueError( - f"Cannot unwrap model {self.model._name}, because it has no {self._odoo_field} fields" + f"Cannot unwrap model {self.model._name}, because it has no " + f"{self._odoo_field} fields" ) from err return column.comodel_name diff --git a/connector/components/locker.py b/connector/components/locker.py index bf8af152d..c96a85056 100644 --- a/connector/components/locker.py +++ b/connector/components/locker.py @@ -63,7 +63,8 @@ def lock(self, records, seconds=None, ignore_retry=True): ) raise RetryableJobError( "A concurrent job is already working on the same record " - f"({self.model._name} with one id in {tuple(records.ids)}). The job will be retried later.", + f"({self.model._name} with one id in {tuple(records.ids)}). The job " + f"will be retried later.", seconds=seconds, ignore_retry=ignore_retry, ) from err diff --git a/connector/components/synchronizer.py b/connector/components/synchronizer.py index 1db2b2e15..0696a7386 100644 --- a/connector/components/synchronizer.py +++ b/connector/components/synchronizer.py @@ -230,7 +230,8 @@ def _lock(self): ) raise RetryableJobError( "A concurrent job is already exporting the same record " - f"({self.model._name} with id {self.binding.id}). The job will be retried later." + f"({self.model._name} with id {self.binding.id}). The job will be " + f"retried later." ) from err def _has_to_skip(self): diff --git a/connector/tests/test_mapper.py b/connector/tests/test_mapper.py index 7eb023857..98d7e611f 100644 --- a/connector/tests/test_mapper.py +++ b/connector/tests/test_mapper.py @@ -145,7 +145,7 @@ def name(self): pass class FryMapperInherit(Component): - _inherit = "fry.mapper" + _inherit = "fry.mapper" # pylint: disable=R8180 _apply_on = "res.users" @changed_by("email")