From 56526636fbc0e27f3f093d7af19209c64c988313 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Fri, 13 Sep 2024 11:12:03 +0200 Subject: [PATCH] revert sentry change --- backend/routes/generate_code.py | 12 ------------ 1 file changed, 12 deletions(-) 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")