aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/modules/xbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'deckit/modules/xbox.py')
-rw-r--r--deckit/modules/xbox.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/deckit/modules/xbox.py b/deckit/modules/xbox.py
index 9254f99..bd2fd6e 100644
--- a/deckit/modules/xbox.py
+++ b/deckit/modules/xbox.py
@@ -506,6 +506,10 @@ class Xbox:
msg = isinstance(e, HttpError) and (e.body.get("status") or {}).get("errorMessage")
raise ModuleError(msg or f"{name} failed: {e}") from e
status = r.get("status") or {}
+ if status.get("errorCode") == "ErrorCallingWNS":
+ # Xbox Live could not push to the console: it lost its registration
+ # (after an update, or a night signed out); the Xbox app fails too.
+ raise ModuleError("The console is not reachable from Xbox Live: turn it on by hand once, then retry.")
if status.get("errorCode", "OK") != "OK":
raise ModuleError(status.get("errorMessage") or status["errorCode"])
self.wake.set()