From e63c4f3b6efac32c2eb2c12b2b19af776f91d7b5 Mon Sep 17 00:00:00 2001 From: dcog989 Date: Sat, 13 Sep 2025 16:30:13 +0100 Subject: [PATCH] Catch scary exception, print friendly log Rather than showing the user `EXCEPTION OCCURS: System.Threading.Tasks.TaskCanceledException...`, print not scary log msg --- Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs b/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs index 6f3b23e11..4ec6f142b 100644 --- a/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs +++ b/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs @@ -73,6 +73,11 @@ namespace Flow.Launcher.Core.ExternalPlugins return null; } } + catch (OperationCanceledException) + { + API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled. That is most likely OK."); + return null; + } catch (Exception e) { if (e is HttpRequestException or WebException or SocketException || e.InnerException is TimeoutException)