fix: mail or error only on created
This commit is contained in:
parent
fd1f78119b
commit
6b9e8162a0
@ -94,4 +94,5 @@ def send_email_on_notification(sender, instance, created, **kwargs):
|
|||||||
html_message=html_message
|
html_message=html_message
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise Exception('Misconfiguration, missing JABBER_DEFAULT_HOST or incomplete instance')
|
if created:
|
||||||
|
raise Exception('Misconfiguration, missing JABBER_DEFAULT_HOST or incomplete instance')
|
||||||
|
Loading…
Reference in New Issue
Block a user