mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-19 17:32:38 +01:00
parent
78b8747b50
commit
80f6033595
@ -190,10 +190,12 @@ protected override List<IMount> GetAllMounts()
|
|||||||
}
|
}
|
||||||
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…
Reference in New Issue
Block a user