Fixed: Ignore invalid mount points

Fixes #9176
This commit is contained in:
Bogdan 2023-09-13 20:23:10 +03:00
parent 78b8747b50
commit 80f6033595
1 changed files with 4 additions and 2 deletions

View File

@ -190,10 +190,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)
{