Fix code quality issues

This commit is contained in:
amcmanu3 2024-02-21 00:04:07 -05:00
parent 62b55792e5
commit 4df7858da6

View File

@ -1,7 +1,4 @@
import logging
import binascii
import base64
import urllib
import json
import nh3
from jsonschema import validate
@ -237,7 +234,8 @@ class PublicHandler(BaseHandler):
return self.finish_json(
200, {"status": "ok", "data": {"message": "login successful!"}}
)
else:
# We'll continue on and handle unsuccessful logins
auth_log.error(
f"User attempted to log into {entered_username}."
f" Authentication failed from remote IP {self.get_remote_ip()}"