mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 01:11:55 +02:00
better error handling in domain deletion
This commit is contained in:
parent
78be172ee4
commit
e751388533
2 changed files with 3 additions and 3 deletions
|
@ -3679,10 +3679,10 @@ class DomainAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
|||
),
|
||||
messages.ERROR,
|
||||
)
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
self.message_user(
|
||||
request,
|
||||
"Could not delete: An unspecified error occured",
|
||||
f"Could not delete: An unspecified error occured: {e}",
|
||||
messages.ERROR,
|
||||
)
|
||||
else:
|
||||
|
|
|
@ -1097,7 +1097,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
except RegistryError as e:
|
||||
logger.error(f"Error deleting contact: {contact}, {e}", exc_info=True)
|
||||
|
||||
logger.info("Finished deleting contacts")
|
||||
logger.info(f"Finished deleting contacts for {self.name}")
|
||||
|
||||
# delete ds data if it exists
|
||||
if self.dnssecdata:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue