diff --git a/database.py b/database.py index 8681197..10f5018 100644 --- a/database.py +++ b/database.py @@ -56,6 +56,8 @@ class TextDB(Database): else: # Prepare to read in the next record inRecord = False + if not card: + return None return Card(card['name'], card['type'], card['attributes'], card['cost'], card['power'], card['toughness'], card['rarity']) if __name__ == '__main__':