From ed29ef7edb7f570578c75c96b558754ce84b69b2 Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Tue, 3 Dec 2024 14:21:11 -0500 Subject: [PATCH] Fix 500 error for MIVS 'everything' export Requested via Slack. We have a primary-contact-less MIVS group in prod and it's causing problems. --- uber/models/mivs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uber/models/mivs.py b/uber/models/mivs.py index 7789b19d9..2249f47d4 100644 --- a/uber/models/mivs.py +++ b/uber/models/mivs.py @@ -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