PennyDreadfulMTG / perf-reports

2 stars 2 forks source link

Error running task ['run.py', 'scraper', 'all'] #50930

Closed vorpal-buildbot closed 5 years ago

vorpal-buildbot commented 5 years ago

Reported on CLI by CLI


InvalidDataException Found unexpected layout `adventure` in {'object': 'card', 'id': '341110e5-577d-45ee-bf62-53373a331c87', 'oracle_id': '7e84aff5-2cb6-4214-befd-3d2de31229e5', 'multiverse_ids': [], 'name': "Lovestruck Beast // Heart's Desire", 'lang': 'en', 'released_at': '2019-10-04', 'uri': 'https://api.scryfall.com/cards/341110e5-577d-45ee-bf62-53373a331c87', 'scryfall_uri': 'https://scryfall.com/card/celd/299/lovestruck-beast-hearts-desire?utm_source=api', 'layout': 'adventure', 'highres_image': False, 'image_uris': {'small': 'https://img.scryfall.com/cards/small/front/3/4/341110e5-577d-45ee-bf62-53373a331c87.jpg?1567635978', 'normal': 'https://img.scryfall.com/cards/normal/front/3/4/341110e5-577d-45ee-bf62-53373a331c87.jpg?1567635978', 'large': 'https://img.scryfall.com/cards/large/front/3/4/341110e5-577d-45ee-bf62-53373a331c87.jpg?1567635978', 'png': 'https://img.scryfall.com/cards/png/front/3/4/341110e5-577d-45ee-bf62-53373a331c87.png?1567635978', 'art_crop': 'https://img.scryfall.com/cards/art_crop/front/3/4/341110e5-577d-45ee-bf62-53373a331c87.jpg?1567635978', 'border_crop': 'https://img.scryfall.com/cards/border_crop/front/3/4/341110e5-577d-45ee-bf62-53373a331c87.jpg?1567635978'}, 'mana_cost': '{2}{G} // {G}', 'cmc': 3.0, 'type_line': 'Creature — Beast Noble // Sorcery — Adventure', 'power': '5', 'toughness': '5', 'colors': ['G'], 'color_identity': ['G'], 'card_faces': [{'object': 'card_face', 'name': 'Lovestruck Beast', 'mana_cost': '{2}{G}', 'cmc': 0.0, 'type_line': 'Creature — Beast Noble', 'oracle_text': "Lovestruck Beast can't attack unless you control a 1/1 creature.", 'power': '5', 'toughness': '5', 'flavor_text': 'His mind chose solitude, but his heart disagreed.', 'artist': 'Tyler Walpole', 'artist_id': '70c4c8c7-61a8-44e7-8fb1-161b7f943e7e', 'illustration_id': '27cd54e9-4639-4344-be81-3bdcb1efa548'}, {'object': 'card_face', 'name': "Heart's Desire", 'mana_cost': '{G}', 'cmc': 0.0, 'type_line': 'Sorcery — Adventure', 'oracle_text': 'Create a 1/1 white Human creature token. (Then exile this card. You may cast the creature later from exile.)', 'artist': 'Tyler Walpole', 'artist_id': '70c4c8c7-61a8-44e7-8fb1-161b7f943e7e'}], 'legalities': {'standard': 'not_legal', 'future': 'not_legal', 'modern': 'not_legal', 'legacy': 'not_legal', 'pauper': 'not_legal', 'vintage': 'not_legal', 'penny': 'not_legal', 'commander': 'not_legal', 'brawl': 'not_legal', 'duel': 'not_legal', 'oldschool': 'not_legal'}, 'games': ['paper'], 'reserved': False, 'foil': True, 'nonfoil': True, 'oversized': False, 'promo': True, 'reprint': True, 'variation': False, 'set': 'celd', 'set_name': 'ELD Collector Boosters', 'set_type': 'promo', 'set_uri': 'https://api.scryfall.com/sets/2c73d57f-84b9-4e9d-8139-d38725dbb94b', 'set_search_uri': 'https://api.scryfall.com/cards/search?order=set&q=e%3Aceld&unique=prints', 'scryfall_set_uri': 'https://scryfall.com/sets/celd?utm_source=api', 'rulings_uri': 'https://api.scryfall.com/cards/341110e5-577d-45ee-bf62-53373a331c87/rulings', 'prints_search_uri': 'https://api.scryfall.com/cards/search?order=released&q=oracleid%3A7e84aff5-2cb6-4214-befd-3d2de31229e5&unique=prints', 'collector_number': '299', 'digital': False, 'rarity': 'rare', 'flavor_text': 'His mind chose solitude, but his heart disagreed.', 'card_back_id': '0aeebaf5-8c7d-4636-9e82-8c27447861f7', 'artist': 'Tyler Walpole', 'artist_ids': ['70c4c8c7-61a8-44e7-8fb1-161b7f943e7e'], 'illustration_id': '27cd54e9-4639-4344-be81-3bdcb1efa548', 'border_color': 'black', 'frame': '2015', 'full_art': False, 'textless': False, 'booster': False, 'story_spotlight': False, 'related_uris': {'tcgplayer_decks': 'https://decks.tcgplayer.com/magic/deck/search?contains=Lovestruck+Beast+%2F%2F+Heart%27s+Desire&page=1&partner=Scryfall&utm_campaign=affiliate&utm_medium=scryfall&utm_source=scryfall', 'edhrec': 'https://edhrec.com/route/?cc=Lovestruck+Beast', 'mtgtop8': 'https://mtgtop8.com/search?MD_check=1&SB_check=1&cards=Lovestruck+Beast+%2F%2F+Heart%27s+Desire'}} Stack Trace: ```Python traceback File "run.py", line 125, in run() File "run.py", line 65, in task multiverse.init() File "/home/discord/decksite/magic/multiverse.py", line 23, in init update_database(last_updated) File "/home/discord/decksite/magic/multiverse.py", line 144, in update_database insert_cards(every_card_printing) File "/home/discord/decksite/magic/multiverse.py", line 232, in insert_cards raise InvalidDataException(f"Found unexpected layout `{p['layout']}` in {p}") ```

Exception_hash: 98bf2c13f4e9622a4ce85a47d4ca6d8a978c0161

silasary commented 5 years ago

Added support for Adventures