Skip to content

Commit

Permalink
Fixed: Ignore inaccessible mount points
Browse files Browse the repository at this point in the history
(cherry picked from commit 60f18249b05daa20523542beef54bc126d963d1e)
  • Loading branch information
mynameisbogdan committed Sep 14, 2023
1 parent e23d0bb commit 30b283e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/NzbDrone.Mono/Disk/DiskProvider.cs
Expand Up @@ -209,10 +209,12 @@ protected override List<IMount> GetAllMounts()
}
catch (Exception ex)
{
throw new Exception($"Failed to fetch drive info for mount point: {d.Name}", ex);
_logger.Debug(ex, "Failed to fetch drive info for mount point: {0}", d.Name);
return null;
}
})
.Where(d => d.DriveType is DriveType.Fixed or DriveType.Network or DriveType.Removable));
.Where(d => d is { DriveType: DriveType.Fixed or DriveType.Network or DriveType.Removable }));
}
catch (Exception e)
{
Expand Down

0 comments on commit 30b283e

Please sign in to comment.