Skip to content

Commit 6a04c7b

Browse files
committed
Fixed atts_up problem in email app
1 parent df5aa6c commit 6a04c7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

outlook_owa/1.0.0/src/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,15 @@ def merge(d1, d2):
471471
output_dict["email_fileid"] = email_id[0]
472472

473473
if upload_attachments_shuffle:
474+
atts_up = []
474475
for attachment in email.attachments:
475476
if type(attachment) == FileAttachment:
476477
atts_up.append({"filename": attachment.name, "data": attachment.content})
477478
elif type(attachment) == ItemAttachment:
478479
atts_up.append({"filename": attachment.name, "data": attachment.item.mime_content})
479480
else:
480481
continue
482+
481483
atts_ids = self.set_files(atts_up)
482484
output_dict["attachment_uids"] = atts_ids
483485

0 commit comments

Comments
 (0)