Skip to content

Commit

Permalink
[FIX] connector: Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed May 1, 2024
1 parent 06fccba commit c8ec6ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion connector/components/binder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion connector/components/locker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion connector/components/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion connector/tests/test_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c8ec6ab

Please sign in to comment.