mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Made #85 better
This commit is contained in:
parent
7349f78b80
commit
1f9ed51320
2 changed files with 15 additions and 16 deletions
|
@ -92,18 +92,10 @@ namespace PlexRequests.Api
|
|||
throw new ApplicationException(message, response.ErrorException);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var json = JsonConvert.DeserializeObject<T>(response.Content);
|
||||
|
||||
return json;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error(e);
|
||||
Log.Error(response.Content);
|
||||
throw;
|
||||
}
|
||||
var json = JsonConvert.DeserializeObject<T>(response.Content);
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
private T DeserializeXml<T>(string input)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue