extremely light cleaning up of the input being being passed blindly into the scryfall api

This commit is contained in:
Holly 2021-03-10 03:45:14 +00:00
parent 93d0c363ad
commit 3a7a9ad33e
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ async def get_cards(card_names):
cards = []
for name in card_names:
name = re.sub(r'<.*?>', '', name).strip()
try:
if len(name) > 141:
c = scrython.cards.Named(fuzzy='Our Market Research Shows That Players Like Really Long Card Names So We Make This Card to Have The Absolute Longest Card Name Ever Elemental')