mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Small fix in translated pages
This commit is contained in:
parent
6e31f93951
commit
01028f10eb
7 changed files with 51 additions and 31 deletions
|
|
@ -70,7 +70,7 @@ def ip_filter_middleware(
|
|||
async def _ip_filter_middleware(request: web.Request, handler: Handler) -> Any:
|
||||
ip_address, accept = check_ip(ip_filter=ip_filter, request=request)
|
||||
if not accept:
|
||||
loggers.webhook.warning(f"Blocking request from an unauthorized IP: {ip_address}")
|
||||
loggers.webhook.warning("Blocking request from an unauthorized IP: %s", ip_address)
|
||||
raise web.HTTPUnauthorized()
|
||||
return await handler(request)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue