Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
markj0hnst0n committed Dec 17, 2024
1 parent 48c63a9 commit 0c941b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mail/chief/licence_reply/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ def load_from_mail(cls, mail: Mail) -> "LicenceReplyProcessor":
raise ValueError(f"Error with Mail ({mail.id} - {mail.response_subject}): Invalid status {mail.status}")

return cls(mail.response_data)

@classmethod
def load_licence_reply_from_mail(cls, mail: Mail) -> "LicenceReplyProcessor":
if mail.extract_type != ExtractTypeEnum.LICENCE_REPLY:
raise ValueError(
f"Error with Mail ({mail.id} - {mail.response_subject}): Invalid extract type {mail.extract_type}"
)
return cls(mail.response_data)

@property
Expand Down

0 comments on commit 0c941b9

Please sign in to comment.