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,
)
if reply == QMessageBox.StandardButton.Yes:
try:
e.action()
except DomainError as inner:
QMessageBox.warning(
self.view,
"Update forbidden",
str(inner),
)
return
else:
return
self.is_dirty = True