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;
|
return jsonObject;
|
||||||
} catch (WebException ex) {
|
} catch (WebException ex) {
|
||||||
log.DoLogCritical(ex.Message, ex);
|
if (swallowException) {
|
||||||
throw ex;
|
// 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) {
|
} catch (Exception ex) {
|
||||||
if (swallowException) {
|
if (swallowException) {
|
||||||
// Do nothing, as we do not want to get this logged. Only uncritical functions uses this
|
// Do nothing, as we do not want to get this logged. Only uncritical functions uses this
|
||||||
|
|
Loading…
Reference in New Issue