mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-09 05:04:50 +00:00
Maybe better
This commit is contained in:
parent
6f38def3e1
commit
80ea526f39
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ async def currency(self: Client, ctx: Message):
|
||||||
amount = teks[1]
|
amount = teks[1]
|
||||||
currency_from = teks[2]
|
currency_from = teks[2]
|
||||||
currency_to = teks[3]
|
currency_to = teks[3]
|
||||||
if amount.isdigit() or amount.isdecimal():
|
if isinstance(amount, (int, float))
|
||||||
url = f"https://v6.exchangerate-api.com/v6/{CURRENCY_API}/" f"pair/{currency_from}/{currency_to}/{amount}"
|
url = f"https://v6.exchangerate-api.com/v6/{CURRENCY_API}/" f"pair/{currency_from}/{currency_to}/{amount}"
|
||||||
try:
|
try:
|
||||||
res = await http.get(url)
|
res = await http.get(url)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue