Commit 93c17256 authored by kaiyou's avatar kaiyou Committed by ayiniho
Browse files

Properly handle 404 from the alias delegation api

parent c5b5a34f
......@@ -330,7 +330,7 @@ class Domain(Base):
return False
def delegate_alias(self, localpart):
req = return requests.get(self.alias_delegation_api.format(localpart))
req = requests.get(self.alias_delegation_api.format(localpart))
return req.json() if req.status_code == 200 else None
def check_mx(self):
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