Handles the case where other might have a None field as well (#4598)

This commit is contained in:
Trenton H
2023-11-15 16:23:38 -08:00
committed by GitHub
parent 72c6ac09ac
commit 07989bc2fa
2 changed files with 12 additions and 11 deletions

View File

@@ -617,7 +617,7 @@ class MailAccountHandler(LoggingMixin):
f"{len(message.attachments)} attachment(s)",
)
tag_ids = [tag.id for tag in rule.assign_tags.all()]
tag_ids: list[int] = [tag.id for tag in rule.assign_tags.all()]
doc_type = rule.assign_document_type
if (