From 197a59639bbdabeb91d7b7274ae4cf72e8f393a2 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 (cherry picked from commit 60f18249b05daa20523542beef54bc126d963d1e) --- 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 6e506d3bd..3083ba239 100644 --- a/src/NzbDrone.Mono/Disk/DiskProvider.cs +++ b/src/NzbDrone.Mono/Disk/DiskProvider.cs @@ -206,10 +206,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) {