Skip to content

Commit

Permalink
Error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Jan 28, 2022
1 parent a6805b6 commit 3278eed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions TVRename/ItemsAndActions/ActionUnArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ public override ActionOutcome Go(TVRenameStats stats)
{
return new ActionOutcome(e);
}
catch (IncompleteArchiveException e)
{
return new ActionOutcome(e);
}
}
private static IArchive GetArchive([NotNull] FileInfo archive)
{
Expand Down
4 changes: 2 additions & 2 deletions TVRename/LibrarySummary/Check/MovieCheckEmptyManualFolders.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using Alphaleonis.Win32.Filesystem;
using JetBrains.Annotations;

Expand Down Expand Up @@ -39,7 +39,7 @@ private static bool DirectoryHasContents(string path)

protected override void FixInternal()
{
foreach (string directory in Movie.ManualLocations.Where(DirectoryIsMissingEmpty))
foreach (string directory in Movie.ManualLocations.Where(DirectoryIsMissingEmpty).ToList())
{
Movie.ManualLocations.Remove(directory);
RemoveEmptyDirectory(directory);
Expand Down

0 comments on commit 3278eed

Please sign in to comment.