File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
api/src/query_usage/routers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77
88from src .db .sql_alchemy import Database
99from src .auth .utils .get_token import authenticate_user
10- from src .util .execptions import NotFoundError , NotEnoughBalanceError
10+ from src .util .execptions import NotFoundError , RateLimitError
1111from src .query_usage .services .query_usage_service import QueryUsageService
1212from src .util .response import global_response , GlobalResponse , ExceptionResponse
1313
@@ -148,7 +148,7 @@ def get_user_query_usages(
148148 "max_query_allowance_per_day" : service .get_user_max_query_allowance (db , user_id )
149149 }
150150 return global_response (data )
151- except NotEnoughBalanceError as e :
151+ except RateLimitError as e :
152152 raise HTTPException (
153153 status_code = status .HTTP_429_TOO_MANY_REQUESTS , detail = str (e ))
154154 except Exception as e :
You can’t perform that action at this time.
0 commit comments