Skip to content

Commit

Permalink
hotfix experience
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Dec 7, 2020
1 parent 4723e9f commit 1933c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion forwarder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand All @@ -75,4 +75,5 @@ async def forward_job():
{SENT_VIA}''', link_preview=False)

if __name__ == "__main__":
assert forwards
asyncio.run(forward_job())

0 comments on commit 1933c97

Please sign in to comment.