Skip to content

Commit

Permalink
[back] chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GresilleSiffle committed Jul 22, 2024
1 parent fc2cf91 commit bbd5f5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/tournesol/models/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class Meta:
related_name="comparisons"
)
entity_1 = models.ForeignKey(
'Entity',
"Entity",
on_delete=models.CASCADE,
related_name="comparisons_entity_1",
help_text="Left entity to compare",
)
entity_2 = models.ForeignKey(
'Entity',
"Entity",
on_delete=models.CASCADE,
related_name="comparisons_entity_2",
help_text="Right entity to compare",
Expand Down Expand Up @@ -165,7 +165,7 @@ def clean(self):
try:
self._validate_score_max()
except (TypeError, ValueError) as err:
raise ValidationError({"score_max": err.args[0]})
raise ValidationError({"score_max": err.args[0]}) from err

def save(self, *args, **kwargs):
self._validate_score_max()
Expand Down

0 comments on commit bbd5f5e

Please sign in to comment.