mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-10 01:29:45 +03:00
[FIX] Игнорирование ошибок при получении последнего тега.
This commit is contained in:
parent
d62d039a6a
commit
9c34019446
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
package ru.gravit.launchserver;
|
package ru.gravit.launchserver;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.ZoneId;
|
import java.time.ZoneId;
|
||||||
|
@ -33,7 +32,7 @@ public Updater(LaunchServer srv) {
|
||||||
GHRepository gravitLauncherTmp = null;
|
GHRepository gravitLauncherTmp = null;
|
||||||
try {
|
try {
|
||||||
gravitLauncherTmp = GitHub.connectAnonymously().getOrganization("GravitLauncher").getRepository("Launcher");
|
gravitLauncherTmp = GitHub.connectAnonymously().getOrganization("GravitLauncher").getRepository("Launcher");
|
||||||
} catch (IOException e) {
|
} catch (Throwable e) {
|
||||||
LogHelper.error(e);
|
LogHelper.error(e);
|
||||||
}
|
}
|
||||||
this.gravitLauncher = gravitLauncherTmp;
|
this.gravitLauncher = gravitLauncherTmp;
|
||||||
|
@ -58,7 +57,7 @@ public void run() {
|
||||||
LogHelper.debug("You can download it: " + rel.getHtmlUrl());
|
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())));
|
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);
|
LogHelper.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue