diff --git a/muxplex/main.py b/muxplex/main.py index c65932f..144f88c 100644 --- a/muxplex/main.py +++ b/muxplex/main.py @@ -946,12 +946,13 @@ async def federation_sessions(request: Request) -> list[dict]: except httpx.HTTPStatusError: return [ { - "status": "auth_failed", + "status": "unreachable", "remoteId": remote_id, "deviceName": remote_name, } ] - except Exception: + except Exception as exc: + _log.warning("Unexpected error fetching remote %s: %s", url, exc) return [ { "status": "unreachable", diff --git a/muxplex/tests/test_api.py b/muxplex/tests/test_api.py index 06ef64f..9e54164 100644 --- a/muxplex/tests/test_api.py +++ b/muxplex/tests/test_api.py @@ -1602,7 +1602,7 @@ def test_federation_client_exists_on_app_state(monkeypatch): # --------------------------------------------------------------------------- -# GET /api/federation/sessions (task-8) +# GET /api/federation/sessions (task-5) # ---------------------------------------------------------------------------