Skip to content

Commit

Permalink
Fix 500 error for MIVS 'everything' export
Browse files Browse the repository at this point in the history
Requested via Slack. We have a primary-contact-less MIVS group in prod and it's causing problems.
  • Loading branch information
kitsuta committed Dec 3, 2024
1 parent 4252ece commit ed29ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uber/models/mivs.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ class IndieStudio(MagModel):

@property
def primary_contact_first_names(self):
if not self.primary_contacts:
return ''

if len(self.primary_contacts) == 1:
return self.primary_contacts[0].first_name

Expand Down

0 comments on commit ed29ef7

Please sign in to comment.