mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-11 10:10:36 +00:00
dca4a2a7af
Codex+Opus pre-release gate both flagged: TimeoutError is now in the consolidated _CLIENT_DISCONNECT_ERRORS dispatch set, so a bare socket-connect TimeoutError from Joplins urlopen(timeout=8) — which is NOT always URLError- wrapped — would escape _handle_notes_search and be swallowed by the dispatch disconnect handler as a fake client disconnect (silent empty response, no log). Catch (URLError, TimeoutError) at the route so it surfaces as a clean "not reachable" ValueError -> JSON error. Adds a regression test. Co-authored-by: someaka <someaka@users.noreply.github.com>