From 80f60335951deaa911cc7c78da51e1086e91e7a5 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 13 Sep 2023 20:23:10 +0300 Subject: [PATCH] Fixed: Ignore invalid mount points Fixes #9176 --- 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) {