feat(willexecutors): differentiate empty server response from network error

Raise NoServersForChainError when the welist server responds but returns
no data for the requested chain, showing a chain-specific message instead
of the generic network error.
This commit is contained in:
2026-06-28 23:56:30 -04:00
parent c9d0280a2a
commit b8e6c240be
2 changed files with 16 additions and 1 deletions

View File

@@ -73,6 +73,10 @@ chainname = BalPlugin.chainname
class Willexecutors:
class NoServersForChainError(Exception):
"""Raised when the welist server responds but returns no data for the
requested chain, indicating no active servers for that network."""
# Expose the networking constants as class attributes so the GUI layer can
# reference them (e.g. to show the "Xs / DEADLINEs" countdown) without
# importing module-level names. Single source of truth: the module