swallow task cancelled exception when loading umami script
This commit is contained in:
@@ -69,6 +69,10 @@ public class AnalyticsController : FinchController
|
|||||||
|
|
||||||
return Content(response, "text/javascript");
|
return Content(response, "text/javascript");
|
||||||
}
|
}
|
||||||
|
catch (Exception ex) when (ex is TaskCanceledException or OperationCanceledException)
|
||||||
|
{
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Logger.LogError(ex, "Failed to load umami script");
|
Logger.LogError(ex, "Failed to load umami script");
|
||||||
|
|||||||
Reference in New Issue
Block a user