From 1933c97e645e35fa13a402655f0ddab55af1c618 Mon Sep 17 00:00:00 2001 From: aahnik <66209958+aahnik@users.noreply.github.com> Date: Mon, 7 Dec 2020 13:35:06 +0530 Subject: [PATCH] hotfix experience --- forwarder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forwarder.py b/forwarder.py index f446e3d9..dc2f8bcf 100644 --- a/forwarder.py +++ b/forwarder.py @@ -8,7 +8,6 @@ from telethon import TelegramClient from settings import API_ID, API_HASH, forwards, get_forward, update_offset -assert forwards logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) @@ -62,6 +61,7 @@ async def forward_job(): except Exception as err: logging.exception(err) error_occured = True + continue logging.info('Completed working with %s', forward) @@ -75,4 +75,5 @@ async def forward_job(): {SENT_VIA}''', link_preview=False) if __name__ == "__main__": + assert forwards asyncio.run(forward_job())