Commit c08a0b67 authored by kaiyou's avatar kaiyou

Properly handle 404 from the alias delegation api

parent 0afbc3a5
Pipeline #392 passed with stage
in 10 minutes and 40 seconds
......@@ -168,7 +168,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):
......
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