mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
better handling for #202
This commit is contained in:
parent
e9937884ad
commit
ba78ca282d
1 changed files with 4 additions and 4 deletions
|
@ -194,9 +194,9 @@ namespace PlexRequests.Api
|
|||
|
||||
return (PlexLibraries)policy.Execute(() => api.ExecuteXml<PlexLibraries>(request, plexFullHost));
|
||||
}
|
||||
catch (ApiRequestException)
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error("There has been a API Exception when attempting to get the Plex Libraries");
|
||||
Log.Error(e,"There has been a API Exception when attempting to get the Plex Libraries");
|
||||
return new PlexLibraries();
|
||||
}
|
||||
}
|
||||
|
@ -223,9 +223,9 @@ namespace PlexRequests.Api
|
|||
|
||||
return (PlexSearch)policy.Execute(() => api.ExecuteXml<PlexSearch>(request, plexFullHost));
|
||||
}
|
||||
catch (ApiRequestException)
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error("There has been a API Exception when attempting to get the Plex Library");
|
||||
Log.Error(e,"There has been a API Exception when attempting to get the Plex Library");
|
||||
return new PlexSearch();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue