email_server: Fix issue with handling domain removal

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2021-12-08 15:32:06 -08:00 committed by James Valleroy
parent 4ec1e15fc1
commit 4b024b269b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -190,7 +190,7 @@ def on_domain_added(sender, domain_type, name, description='', services=None,
audit.domain.set_domains()
def on_domain_removed(sender, domain_type, name, **kwargs):
def on_domain_removed(sender, domain_type, name='', **kwargs):
"""Handle removal of a domain."""
if app.needs_setup():
return