Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
pfouque committed May 24, 2024
1 parent 7337d31 commit ea5fa98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_mailbox/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,9 @@ def reply(self, message):
EmailMessage(subject="pong", body="pongpong")
)
"""
if not isinstance(message, EmailMessage):
from django.core.mail import EmailMessage as DjangoEmailMessage

if not isinstance(message, DjangoEmailMessage):
raise ValueError('Message must be an instance of email.Message')

if not message.from_email:
Expand Down

0 comments on commit ea5fa98

Please sign in to comment.