From 35893af67debdbef3ee71ca4db8521e82b2d1b3b Mon Sep 17 00:00:00 2001 From: BryantHe Date: Fri, 11 Aug 2023 17:32:48 +0800 Subject: [PATCH] feat: update api --- 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 0eabd7b..1cf1c5a 100644 --- a/app/api/v1/auth.py +++ b/app/api/v1/auth.py @@ -21,5 +21,8 @@ def wechat_login(json_data): @auth.input(RefreshTokenIn, location='query') @auth.output(RefreshTokenOut) def refresh_token(query_data): - result = rpc.admin.refresh_token(query_data['refresh_token']) + try: + result = rpc.admin.refresh_token(query_data['refresh_token']) + except Exception as e: + raise e return result \ No newline at end of file