Browse Source

exception

TheHamkerCat 5 years ago
parent
commit
37100fbd91
1 changed files with 4 additions and 1 deletions
  1. 4 1
      wbb/modules/quotly.py

+ 4 - 1
wbb/modules/quotly.py

@@ -1,4 +1,5 @@
 from io import BytesIO
+from traceback import format_exc
 
 from pyrogram import filters
 from pyrogram.types import Message
@@ -97,11 +98,13 @@ async def quotly_func(_, message: Message):
         await message.reply_sticker(sticker)
         await m.delete()
         sticker.close()
-    except Exception:
+    except Exception as e:
         await message.reply_text(
             "Something wrong happened while quoting messages,"
             + " This error usually happens when there's a "
             + " message containing something other than text."
         )
         await m.delete()
+        e = format_exc()
+        print(e)
         return