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