mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-10 13:34:51 +00:00
fix
This commit is contained in:
parent
1bb054b2ce
commit
d7b2d6ae5c
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ async def currency(self: Client, ctx: Message):
|
|||
last_update = data["time_last_update_utc"]
|
||||
except KeyError:
|
||||
return await ctx.reply_msg("<code>Invalid response from api !</i>")
|
||||
await ctx.reply_msg(f"**CURRENCY EXCHANGE RATE RESULT:**\n\n`{format(amount, ",")}` **{base_code}** = `{format(conversion_result, ",")}` **{target_code}**\n<b>Rate Today</b> = `{format(conversion_rate, ",")}`\n<b>Last Update:</b> {last_update}")
|
||||
await ctx.reply_msg(f"**CURRENCY EXCHANGE RATE RESULT:**\n\n`{format(amount, ',')}` **{base_code}** = `{format(conversion_result, ',')}` **{target_code}**\n<b>Rate Today</b> = `{format(conversion_rate, ',')}`\n<b>Last Update:</b> {last_update}")
|
||||
except Exception as err:
|
||||
await ctx.reply_msg("Failed convert currency, maybe you give wrong currency format or api down.")
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ async def imdbcari(self: Client, query: CallbackQuery):
|
|||
timeout=30
|
||||
)
|
||||
except ListenerTimeout:
|
||||
return await msg.edit_caption("😶🌫️ Timeout. Task Has Been Cancelled!")
|
||||
await msg.edit_caption("😶🌫️ Timeout. Task Has Been Cancelled!")
|
||||
except Exception as err:
|
||||
await query.message.edit_caption(f"Failed when requesting movies title. Maybe got rate limit or down.\n\n<b>ERROR:</b> <code>{err}</code>")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue