From c9ede8bf16c5a212d2380719a1ceee5ae7445c6a Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Sat, 12 Oct 2019 23:39:24 +0530 Subject: [PATCH] Fix torrent download from telegram Signed-off-by: lzzy12 --- bot/modules/mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/mirror.py b/bot/modules/mirror.py index a42939a..dd80812 100644 --- a/bot/modules/mirror.py +++ b/bot/modules/mirror.py @@ -117,7 +117,7 @@ def _mirror(update, context, isTar=False): message_args = update.message.text.split(' ') try: link = message_args[1] - except KeyError: + except IndexError: link = '' LOGGER.info(link) link = link.strip()