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

Action nr 4 error #1

Closed
jophar opened this issue May 27, 2019 · 2 comments
Closed

Action nr 4 error #1

jophar opened this issue May 27, 2019 · 2 comments

Comments

@jophar
Copy link

jophar commented May 27, 2019

Hello,

I get this error while executing action numeber 4:

Action number: 4
Traceback (most recent call last):
File "main.py", line 539, in
main()
File "main.py", line 73, in main
show_top_expensive_articles_in_stock(20, api=api)
File "/home/redhat/pymkm/pymkm.py", line 29, in call
return_value = self.function(*arg, **kwargs)
File "main.py", line 438, in show_top_expensive_articles_in_stock
[article['product']['enName'], article['product']['expansion'], u'\u2713' if article['isFoil'] else '', article['language']['languageName'] if article['language'] != 1 else '', article['price']])
KeyError: 'expansion'

Running python3 on:
Linux belatrix 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux

@andli andli closed this as completed in b6bbef2 May 27, 2019
@andli
Copy link
Owner

andli commented May 27, 2019

@jophar I pushed a fix for this, please try it out. I did not see this bug on my side, it must be caused by some item in your stock that does not have an expansion. Do you happen to know which item caused this? Would be good to have in testing.

@jophar
Copy link
Author

jophar commented May 28, 2019

Hi @andli !!
Working perfecly now.
The error was on card sets that don't have a expansion.
Thanks for the fix

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