From c18cf069b1ce6733c2ccdc4dd3f7c102b46b117b Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 24 Jan 2024 23:49:28 +0100 Subject: [PATCH] Prevent invalid webUI from stopping the server (#849) In case there is no internet connection, it is not possible to verify the webUI files, leading to the server to fail from starting up. Instead, the existing webUI should just be used --- .../suwayomi/tachidesk/server/util/WebInterfaceManager.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt b/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt index f3accc800..77fe1d669 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt @@ -258,7 +258,11 @@ object WebInterfaceManager { logger.info { "setupWebUI: found webUI files - flavor= ${serverConfig.webUIFlavor.value}, version= $currentVersion" } if (!isLocalWebUIValid(applicationDirs.webUIRoot)) { - doInitialSetup() + try { + doInitialSetup() + } catch (e: Exception) { + logger.warn(e) { "WebUI is invalid and failed to install a valid version, proceeding with invalid version" } + } return }