fix: mail or error only on created

This commit is contained in:
Jean-Baptiste Pasquier
2019-08-16 15:35:58 +02:00
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')