summaryrefslogtreecommitdiff
path: root/src/selfupdater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selfupdater.cpp')
-rw-r--r--src/selfupdater.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp
index d78b020b..273e9b45 100644
--- a/src/selfupdater.cpp
+++ b/src/selfupdater.cpp
@@ -124,6 +124,7 @@ void SelfUpdater::testForUpdate()
{
// TODO: if prereleases are disabled we could just request the latest release
// directly
+ try {
m_GitHub.releases(GitHub::Repository("LePresidente", "modorganizer"),
[this](const QJsonArray &releases) {
QJsonObject newest;
@@ -155,6 +156,11 @@ void SelfUpdater::testForUpdate()
}
}
});
+ }
+ //Catch all is bad by design, should be improved
+ catch (...) {
+ qDebug("Unable to connect to github.com to check version");
+ }
}
void SelfUpdater::startUpdate()