Skip to content

Commit

Permalink
minimal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kopekC committed Aug 7, 2024
1 parent b7da3f8 commit f84263b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxylist/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def validate_sip002(value) -> None:
)


def validate_not_existing(value)-> None:
def validate_not_existing(value) -> None:
if Proxy.objects.filter(url=get_sip002(instance_url=value)):
raise ValidationError(
"This proxy was already imported",
Expand All @@ -38,7 +38,7 @@ def validate_proxy_can_connect(value) -> None:
)


def proxy_validator(value) -> None::
def proxy_validator(value) -> None:
validate_sip002(value=value)
validate_not_existing(value=value)
validate_proxy_can_connect(value=value)
Expand Down

0 comments on commit f84263b

Please sign in to comment.