Skip to content

Commit

Permalink
Fixed NoneType bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sSt3lla committed Nov 24, 2024
1 parent 9f084c3 commit 7a2e8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrchidekt/deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def fromJson(data: dict) -> Deck:

for card in retval.cards:
added_to_categories = False
if len(card.categories):
if card.categories and len(card.categories):
for category in card.categories:
deck_category = categories.get(category)
if(deck_category is None):
Expand Down

0 comments on commit 7a2e8ec

Please sign in to comment.