mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 07:37:10 -07:00
Fixed: Prevent errors when looking up folders via auto-complete
This commit is contained in:
parent
1b5ed1d641
commit
1ade005a73
1 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,6 @@ namespace NzbDrone.Api.Directories
|
|||
return dirs;
|
||||
}
|
||||
|
||||
|
||||
private List<string> GetSubDirectories(string path)
|
||||
{
|
||||
try
|
||||
|
@ -47,12 +46,15 @@ namespace NzbDrone.Api.Directories
|
|||
catch (DirectoryNotFoundException)
|
||||
{
|
||||
return new List<string>();
|
||||
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
return new List<string>();
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
return new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue