diff --git a/backend/codegen/utils.py b/backend/codegen/utils.py index 107579b..9eeb4fd 100644 --- a/backend/codegen/utils.py +++ b/backend/codegen/utils.py @@ -1,5 +1,7 @@ import re +import sentry_sdk + def extract_html_content(text: str): # Use regex to find content within tags and include the tags themselves @@ -11,4 +13,7 @@ def extract_html_content(text: str): print( "[HTML Extraction] No tags found in the generated content: " + text ) + sentry_sdk.capture_exception( + Exception(" No tags found in the generated content") + ) return text