only raise a exception for no payment found when the user is a subscriber
This commit is contained in:
parent
33793051bc
commit
2888893072
@ -188,8 +188,9 @@ async def extract_params(
|
||||
"auth_token": auth_token,
|
||||
},
|
||||
)
|
||||
sentry_sdk.capture_message("No payment method found")
|
||||
raise Exception("No payment method found")
|
||||
|
||||
if res.status != "not_subscriber":
|
||||
raise Exception("No payment method found")
|
||||
|
||||
# Base URL for OpenAI API
|
||||
openai_base_url: str | None = None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user