fix uncaught exception when deleting battle for sector update

This commit is contained in:
Maxime Réaux 2026-02-26 15:42:14 +01:00
parent e64d9ff43b
commit e457131879

View file

@ -282,7 +282,15 @@ class AppController:
QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No, QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
) )
if reply == QMessageBox.StandardButton.Yes: if reply == QMessageBox.StandardButton.Yes:
e.action() try:
e.action()
except DomainError as inner:
QMessageBox.warning(
self.view,
"Update forbidden",
str(inner),
)
return
else: else:
return return
self.is_dirty = True self.is_dirty = True