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 authored and James Valleroy committed 2021-12-14 18:22:48 -05:00
1 parent 4ec1e15fc1
commit 4b024b269b
1 file changed
+1 -1
+1 -1
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