Skip to content

Commit a5cfe3a

Browse files
committed
fixup! [MIG] mail_gateway: continue migration
1 parent 8063923 commit a5cfe3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mail_gateway/models/mail_thread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def _get_mail_thread_data(self, request_list):
7272
data = super()._get_mail_thread_data(request_list)
7373
data["gateway_followers"] = [
7474
f["partner"]
75-
for f in data["followers"]
76-
if data.get("followers") and f["partner"]["gateway_channels"]
75+
for f in data.get("followers", [])
76+
if f["partner"]["gateway_channels"]
7777
]
7878
return data
7979

0 commit comments

Comments
 (0)