From aa971b8759ff46f3eaeea945cb1b7d778ee0c8b9 Mon Sep 17 00:00:00 2001 From: kaibot Date: Mon, 29 Jun 2026 01:13:38 -0400 Subject: [PATCH] fix: distinguish empty response from network error in advanced mode Show 'No active will-executor servers for {chain}' when the server responds with no data, and 'Could not reach the configured welist server' only for actual connection errors. --- bal/gui/qt/window.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bal/gui/qt/window.py b/bal/gui/qt/window.py index 838e6a1..0a5136c 100644 --- a/bal/gui/qt/window.py +++ b/bal/gui/qt/window.py @@ -1220,8 +1220,16 @@ class BalWindow: _logger.error(f"download_list failed: {exc_info}") if isinstance(exc_info[1], Willexecutors.NoServersForChainError): err = exc_info[1] - if err.url: - # Advanced mode: show the actual URL and error reason. + if err.url and err.reason == "empty response": + # Server reached but returned no data for this chain. + self.show_warning(_( + f"No active will-executor servers found for the " + f"{err.chain} network.\n\n" + f"The welist server at {err.url} responded but " + f"returned no will-executors for this chain." + )) + elif err.url: + # Advanced mode with a non-empty error (network issue). self.show_warning(_( f"Could not reach the configured welist server.\n\n" f"Server: {err.url}\n"