mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Fixed: Ignore inaccessible mount points
This commit is contained in:
parent
7593d4e370
commit
60f18249b0
@ -190,10 +190,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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user