diff --git a/utils/github_webhook.py b/utils/github_webhook.py index 3ca80e9..a91e7af 100644 --- a/utils/github_webhook.py +++ b/utils/github_webhook.py @@ -130,8 +130,8 @@ async def _format_issues(payload: dict) -> str: ) -async def _format_ping(_: dict) -> None: - return None +async def _format_ping(_: dict) -> str: + return "Ping!" async def _format_public(payload: dict) -> str: diff --git a/utils/telegram.py b/utils/telegram.py index f9a3234..858a506 100644 --- a/utils/telegram.py +++ b/utils/telegram.py @@ -51,8 +51,7 @@ async def send_message(session: ClientSession, disable_web_page_preview=True, disable_notification=True ) - async with session.post(api_url, - data=data) as resp: # type: ClientResponse + async with session.post(api_url, data=data) as resp: # type: ClientResponse logging.info('%s, %s, %s', str(chat_id), str(resp.status), repr(text)) tg_response = await resp.json() logging.info("Telegram response: %s", tg_response)