From b0bc8c6fb3cdd050dbbfdeb50a9ee1b0d2cbad45 Mon Sep 17 00:00:00 2001 From: Constantin Piber <59023762+cpiber@users.noreply.github.com> Date: Sun, 12 Jul 2026 22:21:47 +0200 Subject: [PATCH] fix: Do not shadow exceptions on ext install (#2180) Depending on where the exception occurred, the uninstall may fail, because the extension is not installed in the first place, which hides the actual error --- .../suwayomi/tachidesk/manga/impl/extension/Extension.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt index 89f90743..9630bf6d 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt @@ -264,7 +264,10 @@ object Extension { PackageTools.jarLoaderMap.remove(jarFilePath)?.close() File(jarFilePath).delete() - uninstallExtension(pkgName) + try { + uninstallExtension(pkgName) + } catch (_: Throwable) { + } throw e } } else {