Log failure reason when skipping scryfall cards

This commit is contained in:
Correl Roush 2024-02-26 18:16:29 -05:00
parent 1d9723fb1f
commit fc7671efd1
1 changed files with 2 additions and 2 deletions

View File

@ -249,8 +249,8 @@ def update_scryfall(ctx, filename):
)
await tutor.database.store_card(cursor, card)
await tutor.database.store_price(cursor, today, card)
except:
print(f"Skipping entry {card_json}")
except Exception as e:
print(f"Skipping entry {card_json}: {e}")
bar.update(read)
print("Updating oracle card data & indexes")
await cursor.execute(