Commit 4a29c302 authored by kaiyou's avatar kaiyou Committed by ayiniho
Browse files

Fix the return type of alias delegation api

parent 93c17256
......@@ -331,7 +331,7 @@ class Domain(Base):
def delegate_alias(self, localpart):
req = requests.get(self.alias_delegation_api.format(localpart))
return req.json() if req.status_code == 200 else None
return req.json() if req.status_code == 200 else []
def check_mx(self):
""" checks if MX record for domain points to mailu host """
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment