mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 14:04:10 +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,
|
messages.ERROR,
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
self.message_user(
|
self.message_user(
|
||||||
request,
|
request,
|
||||||
"Could not delete: An unspecified error occured",
|
f"Could not delete: An unspecified error occured: {e}",
|
||||||
messages.ERROR,
|
messages.ERROR,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1097,7 +1097,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
except RegistryError as e:
|
except RegistryError as e:
|
||||||
logger.error(f"Error deleting contact: {contact}, {e}", exc_info=True)
|
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
|
# delete ds data if it exists
|
||||||
if self.dnssecdata:
|
if self.dnssecdata:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue