mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-09 18:26:19 +00:00
Fixed: Ignore inaccessible mount points
(cherry picked from commit 60f18249b05daa20523542beef54bc126d963d1e)
This commit is contained in:
@@ -209,10 +209,12 @@ namespace NzbDrone.Mono.Disk
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user