(domains) allow to run all fetch domain data from dimail

Fetch domain status and expected config from dimail.
This commit is contained in:
Sabrina Demagny
2025-02-16 17:57:58 +01:00
parent 38de864d68
commit cdb766b0e0
4 changed files with 158 additions and 3 deletions

View File

@@ -431,6 +431,7 @@ class DimailAPIClient:
self.API_URL,
exc_info=error,
)
raise error
if response.status_code == status.HTTP_200_OK:
return response.json()
return self.raise_exception_for_unexpected_response(response)