mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Forgot give exception
This commit is contained in:
parent
cf004eff38
commit
3c988758a6
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ from os import remove as hapus
|
||||||
import regex
|
import regex
|
||||||
from PIL import Image, ImageDraw, ImageFont
|
from PIL import Image, ImageDraw, ImageFont
|
||||||
from pyrogram import filters
|
from pyrogram import filters
|
||||||
from pyrogram.errors import MessageIdInvalid, PeerIdInvalid, ReactionInvalid
|
from pyrogram.errors import MessageIdInvalid, PeerIdInvalid, ReactionInvalid, ListenerTimeout
|
||||||
|
|
||||||
from misskaty import app, user
|
from misskaty import app, user
|
||||||
from misskaty.core.decorator.errors import capture_err
|
from misskaty.core.decorator.errors import capture_err
|
||||||
|
|
@ -247,6 +247,6 @@ async def tebak_gambar(client, message):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
await response.reply_text("Jawaban salah, coba lagi!")
|
await response.reply_text("Jawaban salah, coba lagi!")
|
||||||
except TimeoutError:
|
except ListenerTimeout:
|
||||||
await message.reply_text(f"Waktu habis! Jawaban yang benar adalah: <b>{correct_answer.upper()}</b>")
|
await message.reply_text(f"Waktu habis! Jawaban yang benar adalah: <b>{correct_answer.upper()}</b>")
|
||||||
break
|
break
|
||||||
Loading…
Reference in a new issue