Skip to content

Commit

Permalink
fix:TypeError: 'NoneType' object is not iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Nov 29, 2023
1 parent 8da7b5d commit 4b43d1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion domain_admin/api/notify_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def get_notify_list_of_user():
]
), rows))


group_ids = []
for row in lst:
group_ids.extend(row['groups'])
Expand Down
2 changes: 1 addition & 1 deletion domain_admin/model/notify_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def groups(self):
if self.groups_raw:
return json.loads(self.groups_raw)
else:
return None
return []

# email参数
@property
Expand Down

0 comments on commit 4b43d1e

Please sign in to comment.