mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Fixed: Ignore inaccessible mount points
(cherry picked from commit 60f18249b05daa20523542beef54bc126d963d1e)
This commit is contained in:
parent
ce99ec6e64
commit
197a59639b
1 changed files with 4 additions and 2 deletions
|
@ -206,10 +206,12 @@ namespace NzbDrone.Mono.Disk
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
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)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue