Merge pull request #113 from Tech-Workers-Coalition-Italia/telegram_log_error

telegram log error
This commit is contained in:
Simone Robutti 2021-12-08 12:29:04 +01:00 committed by GitHub
commit 2c0b0fb46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,10 @@ class TelegramFormatter(AbstractEventFormatter):
"(",
"!",
")",
">",
"<",
"{",
"}",
]
@staticmethod
@ -115,7 +119,8 @@ class TelegramPlatform(AbstractPlatform):
res.raise_for_status()
except requests.exceptions.HTTPError as e:
self._log_error(
f"Server returned invalid data: {str(e)}", raise_error=InvalidResponse,
f"Server returned invalid data: {str(e)}\n{res.text}",
raise_error=InvalidResponse,
)
try: