From 8bb396b44e100f42d91e5bb55a7057de38d85205 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sat, 12 Nov 2016 02:33:51 +0000 Subject: [PATCH] Several improvements --- app_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app_service.py b/app_service.py index b4a06f1..9bc2c48 100644 --- a/app_service.py +++ b/app_service.py @@ -69,7 +69,6 @@ def sanitize_html(string): :param string: The HTML string to sanitized. :return: The sanitized HTML string. """ - string = string.replace('\n', '') string = string.replace('
', '\n').replace('
', '\n') \ .replace('
', '\n') soup = BeautifulSoup(string, 'html.parser') @@ -321,7 +320,7 @@ async def aiotg_message(chat, match): try: room_id = TELEGRAM_CHATS[str(chat.id)] except KeyError: - print('Unknown telegram chat {}'.format(chat)) + print('Unknown telegram chat {}: {}'.format(chat, chat.id)) return user_id = USER_ID_FORMAT.format(chat.sender['id'])