don't allow search queries so long the api spits in my face about it

This commit is contained in:
Holly 2021-03-10 03:18:44 +00:00
parent d60c44a03c
commit 81244e2190
1 changed files with 2 additions and 2 deletions

View File

@ -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: