review changes

This commit is contained in:
Matthew Spence 2024-12-13 15:23:15 -06:00
parent 63c2b7907f
commit 21007ce869
No known key found for this signature in database
3 changed files with 9 additions and 3 deletions

View file

@ -2927,7 +2927,7 @@ class DomainAdmin(ListHeaderAdmin, ImportExportModelAdmin):
message = "Cannot connect to the registry"
if not err.is_connection_error():
# If nothing is found, will default to returned err
message = error_messages[err.code]
message = error_messages.get(err.code, err)
self.message_user(request, f"Error deleting this Domain: {message}", messages.ERROR)
except TransitionNotAllowed:
if obj.state == Domain.State.DELETED: