Add bundled WowPresence fallback path

This commit is contained in:
Dusk-92
2026-09-03 21:18:02 +02:00
parent 627e9392b5
commit c304cd0542
+18 -6
View File
@@ -1451,14 +1451,26 @@ class ModernWowSetupTool(WowSetupTool):
target,
progress=self._report_download_progress,
)
except Exception as fallback_exc:
raise RuntimeError(
"Could not install WowPresence from its online source "
"and no validated local fallback is available."
) from fallback_exc
fallback_action = (
"The last validated cached WowPresence package was installed instead."
)
except Exception:
try:
remote_packages.install_bundled_wowpresence(
target,
progress=self._report_download_progress,
)
fallback_action = (
"The bundled known-good WowPresence fallback was installed instead."
)
except Exception as bundled_exc:
raise RuntimeError(
"Could not install WowPresence from its online source, "
"local cache or bundled fallback."
) from bundled_exc
self._warn_offline(
"WowPresence",
"The last validated cached WowPresence package was installed instead.",
fallback_action,
exc,
)