diff options
Diffstat (limited to 'deckit')
| -rw-r--r-- | deckit/modules/xbox.py | 8 |
1 files changed, 7 insertions, 1 deletions
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): |
