Skip to content

Commit

Permalink
blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Menezes committed May 11, 2024
1 parent 890065e commit b2b5e90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions django/core/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ def __call__(self, value):
if not isinstance(value, str) or len(value) > self.max_length:
raise ValidationError(self.message, code=self.code, params={"value": value})
if not self.accept_idna and not value.isascii():
raise ValidationError(
self.message, code=self.code, params={"value": value}
)
raise ValidationError(self.message, code=self.code, params={"value": value})
super().__call__(value)


Expand Down

0 comments on commit b2b5e90

Please sign in to comment.