🔥(sops) remove obsolete sops file
remove obsolete sops file
This commit is contained in:
committed by
Marie
parent
53d0336755
commit
23561cd0e0
@@ -711,4 +711,17 @@ class DimailAPIClient:
|
||||
"Permission denied. Please check your MAIL_PROVISIONING_API_CREDENTIALS."
|
||||
)
|
||||
|
||||
if response.status_code == status.HTTP_409_CONFLICT:
|
||||
logger.error(
|
||||
"[DIMAIL] Out of sync with dimail. Admin, please import aliases for domain %s",
|
||||
str(alias.domain),
|
||||
)
|
||||
raise exceptions.ValidationError(
|
||||
{
|
||||
"NON_FIELD_ERRORS": [
|
||||
"Alias already exists. Your domain is out of sync, please contact our support."
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
return self.raise_exception_for_unexpected_response(response)
|
||||
|
||||
Reference in New Issue
Block a user