andli / pymkm

Python wrapper for the cardmarket.com API. Also contains a working app with price updating of your personal stock, csv import etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with Yugioh cards

caliendojulien opened this issue · comments

When updating stock prices, app crash with error message :

File "C:\Users\Calie\Documents\pymkm\pymkm_app.py", line 618, in get_article_with_updated_price
article['isFoil'],
KeyError: 'isFoil'

Yugioh Cards don't have 'isFoil' attribute :
{'idArticle': 530741424, 'idProduct': 369122, 'language': {'idLanguage': 2, 'languageName': 'French'}, 'price': 1, 'count': 1, 'product': {'idGame': 3, 'enName': 'Dark Magician', 'locName': 'Magicien Sombre', 'image': '/srv/home/www/img/items/5/SS01/369122.jpg', 'expansion': 'Speed Duel Starter Decks: Destiny Masters', 'nr': 'A01', 'expIcon': '3', 'rarity': 'Common'}, 'isSigned': False}