diff --git a/NOWT/Helpers/LiveMatch.cs b/NOWT/Helpers/LiveMatch.cs index b324080..5c9b255 100644 --- a/NOWT/Helpers/LiveMatch.cs +++ b/NOWT/Helpers/LiveMatch.cs @@ -751,7 +751,7 @@ private static async Task TrackerAsync(string username) { var encodedUsername = Uri.EscapeDataString(username); var url = new Uri("https://tracker.gg/valorant/profile/riot/" + encodedUsername); - var response = await DoCachedRequestAsync(Method.Get, url.ToString(), false).ConfigureAwait(false); + var response = await DoCachedRequestAsync(Method.Get, url.ToString(), false, false, false).ConfigureAwait(false); var numericStatusCode = (short)response.StatusCode; if (numericStatusCode == 200) return url; } diff --git a/NOWT/Helpers/Login.cs b/NOWT/Helpers/Login.cs index 9df7462..1c3f84f 100644 --- a/NOWT/Helpers/Login.cs +++ b/NOWT/Helpers/Login.cs @@ -148,7 +148,7 @@ private static async Task GetLatestVersionAsync() } public static async Task DoCachedRequestAsync(Method method, string url, bool addRiotAuth, - bool bypassCache = false) + bool bypassCache = false, bool displayError = true) { var attemptCache = method == Method.Get && !bypassCache; if (attemptCache) @@ -162,7 +162,7 @@ public static async Task DoCachedRequestAsync(Method method, strin } var response = await client.ExecuteAsync(request, method).ConfigureAwait(false); - if (!response.IsSuccessful) + if (!response.IsSuccessful && displayError) { Constants.Log.Error("Request to {url} Failed: {e}", url, response.ErrorException); return response;