docs: update usage guide and README; fix minor formatting issues in utils.py

This commit is contained in:
mrT23
2024-07-28 09:30:21 +03:00
parent 6ba7b3eea2
commit e946a0ea9f
4 changed files with 8 additions and 3 deletions

View File

@ -557,7 +557,7 @@ def _fix_key_value(key: str, value: str):
def load_yaml(response_text: str, keys_fix_yaml: List[str] = [], first_key="", last_key="") -> dict:
response_text = response_text.removeprefix('```yaml').rstrip('`')
response_text = response_text.strip('\n').removeprefix('```yaml').rstrip('`')
try:
data = yaml.safe_load(response_text)
except Exception as e: