Merge pull request #310 from Cockatrice/fix_key_error
Some checks failed
Deploy / Check for new spoiler (push) Has been cancelled

Fix error & more robust MFC handling
This commit is contained in:
Zach H 2025-08-20 20:04:20 -04:00 committed by GitHub
commit 85e4bd093b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,7 +213,7 @@ def scryfall2mtgjson(scryfall_cards: List[Dict[str, Any]]) -> List[Dict[str, Any
for sf_card in composed_sf_cards:
super_types, types, sub_types = build_types(sf_card)
if "//" in sf_card.get("name", ""):
if "card_faces" in sf_card:
image = (
sf_card["card_faces"][0]
.get("image_uris", {})