Skip to content

Commit e63c4f3

Browse files
committed
Catch scary exception, print friendly log
Rather than showing the user `EXCEPTION OCCURS: System.Threading.Tasks.TaskCanceledException...`, print not scary log msg
1 parent b898c46 commit e63c4f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ public async Task<List<UserPlugin>> FetchAsync(CancellationToken token)
7373
return null;
7474
}
7575
}
76+
catch (OperationCanceledException)
77+
{
78+
API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled. That is most likely OK.");
79+
return null;
80+
}
7681
catch (Exception e)
7782
{
7883
if (e is HttpRequestException or WebException or SocketException || e.InnerException is TimeoutException)

0 commit comments

Comments
 (0)