From 1b9c71b324298fff1ac3e0498ef8a0fcd5746af4 Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Thu, 29 Aug 2024 18:03:31 +0800 Subject: [PATCH] fix: string error --- api/controllers/console/auth/forgot_password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/console/auth/forgot_password.py b/api/controllers/console/auth/forgot_password.py index 8df148538a5e70..632a2f22f5a95b 100644 --- a/api/controllers/console/auth/forgot_password.py +++ b/api/controllers/console/auth/forgot_password.py @@ -42,7 +42,7 @@ def post(self): try: token = AccountService.send_reset_password_email(account=account, email=args["email"]) except RateLimitExceededError: - logging.warning(f"Rate limit exceeded for email: {args["email"]}") + logging.warning(f"Rate limit exceeded for email: {args['email']}") raise PasswordResetRateLimitExceededError() return {"result": "success", "data": token}