Skip to content

Commit

Permalink
handle null for special
Browse files Browse the repository at this point in the history
  • Loading branch information
flaree committed Dec 5, 2023
1 parent a1beb9c commit 22c3ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballsdex/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class Meta:

@property
def is_tradeable(self) -> bool:
return self.tradeable and self.ball.tradeable and self.special.tradeable
return self.tradeable and self.ball.tradeable and getattr(self.special, "tradeable", True)

@property
def attack(self) -> int:
Expand Down

0 comments on commit 22c3ff3

Please sign in to comment.