We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eaa90b3 + 08a571f commit 0e0ef0eCopy full SHA for 0e0ef0e
Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs
@@ -73,6 +73,17 @@ public async Task<List<UserPlugin>> FetchAsync(CancellationToken token)
73
return null;
74
}
75
76
+ catch (OperationCanceledException) when (token.IsCancellationRequested)
77
+ {
78
+ API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled by caller.");
79
+ return null;
80
+ }
81
+ catch (TaskCanceledException)
82
83
+ // Likely an HttpClient timeout or external cancellation not requested by our token
84
+ API.LogWarn(ClassName, $"Fetching from {ManifestFileUrl} timed out.");
85
86
87
catch (Exception e)
88
{
89
if (e is HttpRequestException or WebException or SocketException || e.InnerException is TimeoutException)
0 commit comments