From 404e3d2138e162245a5b6f66df54e6eeafaaa62c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org>
Date: Fri, 11 Oct 2024 10:49:57 +0200
Subject: [PATCH] fix team_roles

---
 district/tasks.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/district/tasks.py b/district/tasks.py
index 992bcdd9..74a46f05 100644
--- a/district/tasks.py
+++ b/district/tasks.py
@@ -68,6 +68,9 @@ def import_people_from_team(
 ):
     from .models import DistrictOctopusPersonPage, DistrictPeoplePage
 
+    if team_roles is None:
+        team_roles = []
+
     lock_file_name = os.path.join(
         tempfile.gettempdir(),
         f"{people_parent_page_id}-{team_shortcut}-{','.join(team_roles)}.people-from-team-import-lock",
-- 
GitLab