Add unicode except

This commit is contained in:
amcmanu3 2024-02-19 20:35:36 -05:00
parent 1cf773bd40
commit 1a7c76dca7

View File

@ -150,7 +150,7 @@ class PublicHandler(BaseHandler):
entered_password = urllib.parse.unquote( entered_password = urllib.parse.unquote(
base64.b64decode(data["password"]).decode("utf-8") base64.b64decode(data["password"]).decode("utf-8")
) )
except binascii.Error: except (binascii.Error, UnicodeDecodeError):
return self.finish_json( return self.finish_json(
403, 403,
{ {