Skip to content

Commit

Permalink
Fix TaskCanceledException
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Nov 5, 2021
1 parent abf1231 commit 0689839
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions TVRename/Sources/TMDB/API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static IEnumerable<ChangesListItem> GetChanges(this TMDbClient client, C
{
if (cts.IsCancellationRequested)
{
throw new CancelledException();
throw new TaskCanceledException($"Manual Cancellation");
}
SearchContainer<ChangesListItem>? response = changeMethod(currentPage, time, null, cts).Result;
numberOfCallsMade++;
Expand Down Expand Up @@ -84,10 +84,6 @@ public class TooManyCallsException : Exception
{
}

public class CancelledException : Exception
{
}

[NotNull]
public static string WebsiteShowUrl([NotNull] CachedSeriesInfo ser)
{
Expand Down

0 comments on commit 0689839

Please sign in to comment.