in bugbounty_gpt/handlers/submission_handler.py [0:0]
def generate_comment_text(self):
"""
Generates the text for a comment based on the classification.
:return: Generated comment text or None if the classification is not found.
"""
try:
specific_classification_name = self.classification.name
specific_classification_text = RESPONSES[specific_classification_name]
comment_text = f"Hello!\n\n{specific_classification_text}"
return comment_text
except KeyError:
logger.error(f"Response for classification {self.classification.name} not found.")
return None