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