handling 99 error message

This commit is contained in:
David Kennedy 2023-09-26 10:31:08 -04:00
parent 51375059c1
commit 74c7e6528f
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 10 additions and 0 deletions

View file

@ -753,6 +753,12 @@ class DomainAdmin(ListHeaderAdmin):
"Error placing the hold with the registry: {err}",
messages.ERROR,
)
elif err.is_connection_error():
self.message_user(
request,
"Error connecting to the registry",
messages.ERROR,
)
else:
# all other type error messages, display the error
self.message_user(request, err, messages.ERROR)