don't allow search queries so long the api spits in my face about it
This commit is contained in:
parent
d60c44a03c
commit
81244e2190
|
@ -106,7 +106,7 @@ async def get_cards(card_names):
|
||||||
|
|
||||||
for name in card_names:
|
for name in card_names:
|
||||||
try:
|
try:
|
||||||
c = scrython.cards.Named(fuzzy=name)
|
c = scrython.cards.Named(fuzzy=name[:499])
|
||||||
cards.append(c)
|
cards.append(c)
|
||||||
responses.append(f'{c.name()} - {c.scryfall_uri()}')
|
responses.append(f'{c.name()} - {c.scryfall_uri()}')
|
||||||
except scrython.foundation.ScryfallError:
|
except scrython.foundation.ScryfallError:
|
||||||
|
|
Loading…
Reference in New Issue