From 26b2f3255dea0ee13c562ffcfd8d641fd976d5f8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 17:31:03 +0100 Subject: fix(xbox): a refused console list no longer blanks the tab; tab icon xccs answers 403 from its gateway while every other Xbox Live endpoint answers, and that one failure marked the whole tab offline. The console list now fails on its own, the tab says console control is unavailable, and the rest reads. The Xbox tab gets the Xbox glyph like the others. Co-Authored-By: Claude Opus 5.5 --- deckit/modules/xbox.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'deckit/modules') diff --git a/deckit/modules/xbox.py b/deckit/modules/xbox.py index 8efa426..c8fb581 100644 --- a/deckit/modules/xbox.py +++ b/deckit/modules/xbox.py @@ -354,7 +354,13 @@ class Xbox: # --- reads ---------------------------------------------------------- def read_fast(self): presence = summarize_presence(self.api(PRESENCE, 3)) - consoles = summarize_consoles(self.api(DEVICES, 4, extra=SG)) + try: + consoles = summarize_consoles(self.api(DEVICES, 4, extra=SG)) + except HttpError as e: + # xccs sits behind its own gateway and can refuse alone; the rest still reads. + if e.status == 401: + raise + consoles, self.reason = self.data.get("consoles") or [], f"consoles: {e}" self.data = {**self.data, "presence": presence, "consoles": consoles} def read_slow(self): -- cgit v1.2.3