From e9b27c547c2a5930753522471cd5d7aa5f329cf4 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Wed, 29 Apr 2026 12:00:06 +0200 Subject: [PATCH] swallow task cancelled exception when loading umami script --- Finch/Logging/AnalyticsController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Finch/Logging/AnalyticsController.cs b/Finch/Logging/AnalyticsController.cs index 633834b5..010f38fc 100644 --- a/Finch/Logging/AnalyticsController.cs +++ b/Finch/Logging/AnalyticsController.cs @@ -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");