Fixes regex group
This commit is contained in:
parent
e8d1c04712
commit
00c6b7e6e0
|
@ -73,7 +73,7 @@ def is_blocked_user_agent(request):
|
||||||
url = re.search(r"https?://{:s}/?".format(regex.domain), user_agent)
|
url = re.search(r"https?://{:s}/?".format(regex.domain), user_agent)
|
||||||
if not url:
|
if not url:
|
||||||
return False
|
return False
|
||||||
url = url.groups()
|
url = url.group()
|
||||||
return models.FederatedServer.is_blocked(url)
|
return models.FederatedServer.is_blocked(url)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue