mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -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));
|
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();
|
return new PlexLibraries();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -223,9 +223,9 @@ namespace PlexRequests.Api
|
||||||
|
|
||||||
return (PlexSearch)policy.Execute(() => api.ExecuteXml<PlexSearch>(request, plexFullHost));
|
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();
|
return new PlexSearch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue