Skip to content

Commit 2900364

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fa59ac1 commit 2900364

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

oauth2_provider/validators.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ def __call__(self, value):
8080
params={"name": self.name, "value": value, "cause": "path not allowed"},
8181
)
8282

83-
if (
84-
oauth2_settings.ALLOW_REDIRECT_URI_WILDCARDS
85-
and self.allow_hostname_wildcard
86-
and "*" in netloc
87-
):
83+
if oauth2_settings.ALLOW_REDIRECT_URI_WILDCARDS and self.allow_hostname_wildcard and "*" in netloc:
8884
domain_parts = netloc.split(".")
8985
if netloc.count("*") > 1:
9086
raise ValidationError(

0 commit comments

Comments
 (0)