String formatting and max line length - Part 2 (#84393)

This commit is contained in:
Franck Nijhof 2022-12-22 11:38:59 +01:00 committed by GitHub
parent 7e682af472
commit cb13418bab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 431 additions and 174 deletions

View file

@ -116,7 +116,10 @@ async def process_wrong_login(request: Request) -> None:
gethostbyaddr, request.remote
)
base_msg = f"Login attempt or request with invalid authentication from {remote_host} ({remote_addr})."
base_msg = (
"Login attempt or request with invalid authentication from"
f" {remote_host} ({remote_addr})."
)
# The user-agent is unsanitized input so we only include it in the log
user_agent = request.headers.get("user-agent")