[skip ci] do not log STS_MISMATCH errors

This commit is contained in:
Brahim Hadriche committed 2025-09-19 16:38:04 -04:00
1 parent 688206ef91
commit b4a4a688ca
2 files changed
+13 -5

No files matched your search

@@ -434,11 +434,6 @@ namespace Innertube
response = request.Await()
if not response.IsSuccess()
if response.IsCancelled()
LogErrorNoTelemetry(response.ErrorMessage())
else
LogError(response.ErrorMessage())
end if
errorCode = ""
if response.StatusCode() = 400
json = response.Json()
@@ -456,6 +451,13 @@ namespace Innertube
if errorCode <> ""
exception.errorCode = errorCode
end if
if response.IsCancelled() or errorCode = "STS_MISMATCH"
LogErrorNoTelemetry(response.ErrorMessage())
else
LogError(response.ErrorMessage())
end if
return exception
end if