block scalar

This commit is contained in:
mrT23
2023-08-11 18:35:34 +03:00
parent 1b0b90e51d
commit 273a9e35d9
3 changed files with 8 additions and 6 deletions

View File

@ -237,7 +237,7 @@ class PRReviewer:
return
review_text = self.prediction.strip()
review_text = review_text.lstrip('```yaml').rstrip('`')
review_text = review_text.removeprefix('```yaml').rstrip('`')
try:
data = yaml.load(review_text, Loader=SafeLoader)
except Exception as e: