add webhook support

This commit is contained in:
Yochai Lehman
2024-02-11 16:52:49 -05:00
parent d0958022a0
commit 9a54be5414
4 changed files with 123 additions and 1 deletions

View File

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