stop raising exceptions for "user has no credits" here (saas backend includes it)

This commit is contained in:
Abi Raja 2024-05-14 11:11:05 -04:00
parent 9a13fcc3d0
commit 9df95d9916

View File

@ -125,7 +125,6 @@ async def stream_code(websocket: WebSocket):
await throw_error( await throw_error(
"Your subscription has run out of monthly credits. Contact support and we can add more credits to your account for free." "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: else:
await throw_error("Unknown error occurred. Contact support.") await throw_error("Unknown error occurred. Contact support.")
raise Exception("Unknown error occurred when checking subscription credits") raise Exception("Unknown error occurred when checking subscription credits")