TheHamkerCat il y a 5 ans
Parent
commit
37100fbd91
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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