Commit e49502cb authored by kaiyou's avatar kaiyou

Fix the return type of alias delegation api

parent c08a0b67
Pipeline #393 passed with stage
in 11 minutes and 8 seconds
......@@ -169,7 +169,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):
try:
......
Markdown is supported
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