Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching for "--type Legendary --set AKH" throws exception unpacking power/toughness #25

Open
TC01 opened this issue Oct 13, 2017 · 1 comment

Comments

@TC01
Copy link
Contributor

TC01 commented Oct 13, 2017

I attempted to run mtg --type Legendary --set AKH to get a list of all legendary cards from Amonkhet. mtg threw the following exception:

Traceback (most recent call last):
  File "/usr/bin/mtg", line 117, in <module>
    sys.exit(main())
  File "/usr/bin/mtg", line 104, in main
    cards = CardExtractor(url).cards
  File "/usr/lib/python3.6/site-packages/mtglib/card_extractor.py", line 60, in cards
    return self.extract_many()
  File "/usr/lib/python3.6/site-packages/mtglib/card_extractor.py", line 90, in extract_many
    card.power, card.toughness = self.split_pow_tgh(number)
ValueError: not enough values to unpack (expected 2, got 1)

This is using Python 3.6, on Fedora 26, and the latest release (1.6.1).

I thought at first it might be because there is a mix of creature and non-creature legendaries in Amonkhet. However this appears not to be the case because running a similar search over e.g. --set KLD works just fine... so I'm not immediately sure what the issue is.

euronay added a commit to euronay/mtg that referenced this issue Oct 26, 2017
Fixed an issue with Nissa, Steward of Elements X loyalty throwing
exception unpacking power/toughness
@euronay
Copy link

euronay commented Oct 26, 2017

The issue here was Nissa, Steward or Element's X loyalty. I've made a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants