From 95ccf2865d3a99f6f04345e7308758ba2becc558 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Fri, 11 Aug 2023 16:52:34 +0800 Subject: [PATCH] fix: bug --- app/api/v1/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/api/v1/auth.py b/app/api/v1/auth.py index 0f4ad7f..94485ce 100644 --- a/app/api/v1/auth.py +++ b/app/api/v1/auth.py @@ -10,7 +10,10 @@ auth = APIBlueprint('auth', __name__) @auth.input(WechatLoginIn) @auth.output(WechatLoginOut) def wechat_login(data): - result = rpc.admin.wechat_login(data['code']) + try: + result = rpc.admin.wechat_login(data['code']) + except Exception as e: + raise e return result