diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py index 0ce2c50..e32c272 100644 --- a/backend/routes/generate_code.py +++ b/backend/routes/generate_code.py @@ -1,9 +1,7 @@ import asyncio from dataclasses import dataclass -import os from fastapi import APIRouter, WebSocket import openai -import sentry_sdk from codegen.utils import extract_html_content from config import ( IS_PROD, @@ -178,16 +176,6 @@ async def extract_params( await throw_error( "Please subscribe to a paid plan to generate code. If you are a subscriber and seeing this error, please contact support." ) - import sentry_sdk - - sentry_sdk.set_context( - "subscription_check", - { - "status": res.status, - "payment_method": payment_method, - "auth_token": auth_token, - }, - ) if res.status != "not_subscriber": raise Exception("No payment method found")