Adjust import warnings

This commit is contained in:
Correl Roush 2022-02-10 18:03:21 -05:00
parent 1e275a8288
commit bc24b89d25

View file

@ -45,16 +45,13 @@ async def load(
foil=is_foil or None,
)
if not found:
# logging.warning("Could not find card for row %s", row)
continue
elif len(found) > 1:
# logging.warning(
# "Found %s possibilities for row %s", len(found), row
# )
# for card in found:
# logging.warning(card)
logging.warning("Could not find card for row %s", row)
continue
else:
if len(found) > 1:
logging.warning(
"Found %s possibilities for row %s", len(found), row
)
card = tutor.models.CardCopy(
card=found[0],
foil=is_foil,