deckmaster icon indicating copy to clipboard operation
deckmaster copied to clipboard

cards.py and scryfall_card_gen.py broken when no agruments

Open Samega7Cattac opened this issue 6 years ago • 0 comments

When running cards.py without arguments the usage don't appear

  • cards.py
Traceback (most recent call last):
  File "cards.py", line 52, in <module>
    cards_db[(o["set"], o["collector_number"], o["lang"])] = convert(o)
  File "cards.py", line 38, in convert
    else [cf["image_uris"] for cf in o["card_faces"]],
KeyError: 'card_faces'
  • scryfall_card_gen.py:
Traceback (most recent call last):
  File "scryfall_card_gen.py", line 9, in <module>
    version = sys.argv[1].strip("v")
IndexError: list index out of range

Samega7Cattac avatar Jun 04 '19 04:06 Samega7Cattac