From 7ae2e1e1bb7c47d22868641180591ffb3a3d6e4e Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Fri, 4 Oct 2024 16:31:07 +1000 Subject: [PATCH] Update rotation_script.py --- rotation_script/rotation_script.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rotation_script/rotation_script.py b/rotation_script/rotation_script.py index 29e92d532..8aa514ac6 100644 --- a/rotation_script/rotation_script.py +++ b/rotation_script/rotation_script.py @@ -137,8 +137,11 @@ def prepare_flavornames() -> dict[str, str]: renames = {} for c in flavored: if c['layout'] == 'reversible_card': - renames[c['card_faces'][0]['flavor_name']] = c['card_faces'][0]['name'] - renames[c['card_faces'][1]['flavor_name']] = c['card_faces'][1]['name'] + try: + renames[c['card_faces'][0]['flavor_name']] = c['card_faces'][0]['name'] + renames[c['card_faces'][1]['flavor_name']] = c['card_faces'][1]['name'] + except KeyError: + pass else: # So far, we don't need to worry about DFCs with flavor names, as none are available on MTGO. # In the future, we may need to adjust this code to match pricefiles