From e5aab88cb6214de869cc4d565a51077532806b87 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 7 Jun 2021 23:02:28 +1200 Subject: [PATCH] Catch second exception --- .../me/libraryaddict/disguise/LibsDisguises.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java index 4100acb8..8533895c 100644 --- a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java @@ -104,7 +104,11 @@ public class LibsDisguises extends JavaPlugin { commandConfig.load(); } } catch (Throwable throwable) { - getUpdateChecker().doUpdate(); + try { + getUpdateChecker().doUpdate(); + } catch (Throwable t) { + getLogger().severe("Failed to even do a forced update"); + } throw throwable; } @@ -251,7 +255,11 @@ public class LibsDisguises extends JavaPlugin { new MetricsInitalizer(); } catch (Throwable throwable) { - getUpdateChecker().doUpdate(); + try { + getUpdateChecker().doUpdate(); + } catch (Throwable t) { + getLogger().severe("Failed to even do a forced update"); + } throw throwable; }