From 9df95d99160cc801f19076e4d4501dee472ccd5d Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 14 May 2024 11:11:05 -0400 Subject: [PATCH] stop raising exceptions for "user has no credits" here (saas backend includes it) --- backend/routes/generate_code.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py index 0173b7b..526571d 100644 --- a/backend/routes/generate_code.py +++ b/backend/routes/generate_code.py @@ -125,7 +125,6 @@ async def stream_code(websocket: WebSocket): await throw_error( "Your subscription has run out of monthly credits. Contact support and we can add more credits to your account for free." ) - raise Exception("User has no credits") else: await throw_error("Unknown error occurred. Contact support.") raise Exception("Unknown error occurred when checking subscription credits")