From e45713187953fdfa47bccede9e5f753f6472a949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20R=C3=A9aux?= Date: Thu, 26 Feb 2026 15:42:14 +0100 Subject: [PATCH] fix uncaught exception when deleting battle for sector update --- src/warchron/controller/app_controller.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/warchron/controller/app_controller.py b/src/warchron/controller/app_controller.py index 7f0bf9b..d0212db 100644 --- a/src/warchron/controller/app_controller.py +++ b/src/warchron/controller/app_controller.py @@ -282,7 +282,15 @@ class AppController: QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No, ) if reply == QMessageBox.StandardButton.Yes: - e.action() + try: + e.action() + except DomainError as inner: + QMessageBox.warning( + self.view, + "Update forbidden", + str(inner), + ) + return else: return self.is_dirty = True