Skip to content

Commit

Permalink
extra check to avoid None error
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed Jan 15, 2016
1 parent a546d98 commit e7fb8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nadine/models/core.py
Expand Up @@ -219,7 +219,7 @@ def invalid_billing(self):
members = []
for m in self.active_members():
membership = m.active_membership()
if membership.monthly_rate > 0:
if membership and membership.monthly_rate > 0:
if not m.has_valid_billing():
members.append(m)
return members
Expand Down

0 comments on commit e7fb8ee

Please sign in to comment.