[FIX] Игнорирование ошибок при получении последнего тега.

This commit is contained in:
zaxar163 2019-01-22 16:52:32 +03:00
parent d62d039a6a
commit 9c34019446
No known key found for this signature in database
GPG key ID: E3B309DD3852DE06

View file

@ -1,6 +1,5 @@
package ru.gravit.launchserver;
import java.io.IOException;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
@ -33,7 +32,7 @@ public Updater(LaunchServer srv) {
GHRepository gravitLauncherTmp = null;
try {
gravitLauncherTmp = GitHub.connectAnonymously().getOrganization("GravitLauncher").getRepository("Launcher");
} catch (IOException e) {
} catch (Throwable e) {
LogHelper.error(e);
}
this.gravitLauncher = gravitLauncherTmp;
@ -58,7 +57,7 @@ public void run() {
LogHelper.debug("You can download it: " + rel.getHtmlUrl());
LogHelper.debug("It`s published at: " + DATE_TIME_FORMATTER.format(LocalDateTime.ofInstant(Instant.ofEpochMilli(rel.getPublished_at().getTime()), ZoneId.systemDefault())));
}
} catch (IOException e) {
} catch (Throwable e) {
LogHelper.error(e);
}
}