From 6a67d2f0fa2230cd164731c5bb5394d45ba56fa4 Mon Sep 17 00:00:00 2001 From: Adek Maulana Date: Tue, 19 May 2020 01:41:01 +0700 Subject: [PATCH] stickers: kang remove useless try Change-Id: I0ab46c4b8f616c0d81be32c1b0105c863a80db22 --- userbot/modules/stickers.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/userbot/modules/stickers.py b/userbot/modules/stickers.py index e647287c..3c61ac98 100644 --- a/userbot/modules/stickers.py +++ b/userbot/modules/stickers.py @@ -55,13 +55,9 @@ async def kang(args): await bot.download_file(message.media.document, photo) if (DocumentAttributeFilename(file_name='sticker.webp') in message.media.document.attributes): - try: - emoji = message.media.document.attributes[1].alt - except Exception: - pass - else: - if emoji != '': - emojibypass = True + emoji = message.media.document.attributes[1].alt + if emoji != '': + emojibypass = True elif "tgsticker" in message.media.document.mime_type: await args.edit(f"`{random.choice(KANGING_STR)}`") await bot.download_file(message.media.document,