swallow task cancelled exception when loading umami script

This commit is contained in:
2026-04-29 12:00:06 +02:00
parent d0667a7937
commit e9b27c547c
+4
View File
@@ -69,6 +69,10 @@ public class AnalyticsController : FinchController
return Content(response, "text/javascript");
}
catch (Exception ex) when (ex is TaskCanceledException or OperationCanceledException)
{
// ignore
}
catch (Exception ex)
{
Logger.LogError(ex, "Failed to load umami script");