From 60f18249b05daa20523542beef54bc126d963d1e Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 14 Sep 2023 04:06:08 +0300 Subject: [PATCH] Fixed: Ignore inaccessible mount points --- src/NzbDrone.Mono/Disk/DiskProvider.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Mono/Disk/DiskProvider.cs b/src/NzbDrone.Mono/Disk/DiskProvider.cs index 0cbdf9cfa..a44966bc5 100644 --- a/src/NzbDrone.Mono/Disk/DiskProvider.cs +++ b/src/NzbDrone.Mono/Disk/DiskProvider.cs @@ -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) {