Add offline fallbacks for remote components #9
+18
-6
@@ -1451,14 +1451,26 @@ class ModernWowSetupTool(WowSetupTool):
|
|||||||
target,
|
target,
|
||||||
progress=self._report_download_progress,
|
progress=self._report_download_progress,
|
||||||
)
|
)
|
||||||
except Exception as fallback_exc:
|
fallback_action = (
|
||||||
raise RuntimeError(
|
"The last validated cached WowPresence package was installed instead."
|
||||||
"Could not install WowPresence from its online source "
|
)
|
||||||
"and no validated local fallback is available."
|
except Exception:
|
||||||
) from fallback_exc
|
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(
|
self._warn_offline(
|
||||||
"WowPresence",
|
"WowPresence",
|
||||||
"The last validated cached WowPresence package was installed instead.",
|
fallback_action,
|
||||||
exc,
|
exc,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user