Muted a potential exception caused by GitHub version checks
This commit is contained in:
parent
a6a6621ed0
commit
51363b847f
|
@ -56,8 +56,12 @@ namespace Core.MarketAnalyzer {
|
|||
|
||||
return jsonObject;
|
||||
} catch (WebException ex) {
|
||||
log.DoLogCritical(ex.Message, ex);
|
||||
throw 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
|
||||
|
|
Loading…
Reference in New Issue