From 1ade005a73a461afd28a0fc06a81c1c74d22f13f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 10 May 2014 18:39:15 -0700 Subject: [PATCH] Fixed: Prevent errors when looking up folders via auto-complete --- src/NzbDrone.Api/Directories/DirectoryLookupService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Api/Directories/DirectoryLookupService.cs b/src/NzbDrone.Api/Directories/DirectoryLookupService.cs index 6f372d0e9..39af46d0a 100644 --- a/src/NzbDrone.Api/Directories/DirectoryLookupService.cs +++ b/src/NzbDrone.Api/Directories/DirectoryLookupService.cs @@ -37,7 +37,6 @@ public List LookupSubDirectories(string query) return dirs; } - private List GetSubDirectories(string path) { try @@ -47,12 +46,15 @@ private List GetSubDirectories(string path) catch (DirectoryNotFoundException) { return new List(); - } catch (ArgumentException) { return new List(); } + catch (IOException) + { + return new List(); + } } } }