Muted a potential exception caused by GitHub version checks

This commit is contained in:
Legedric 2018-06-06 06:00:21 +02:00
parent a6a6621ed0
commit 51363b847f
1 changed files with 6 additions and 2 deletions

View File

@ -56,8 +56,12 @@ namespace Core.MarketAnalyzer {
return jsonObject;
} catch (WebException ex) {
log.DoLogCritical(ex.Message, ex);
if (swallowException) {
// Do nothing, as we do not want to get this logged. Only uncritical functions uses this
} else {
log.DoLogCritical("Url: " + url + " Message: " + ex.Message, ex);
throw ex;
}
} catch (Exception ex) {
if (swallowException) {
// Do nothing, as we do not want to get this logged. Only uncritical functions uses this