Made #85 better

This commit is contained in:
tidusjar 2016-03-29 10:49:30 +01:00
commit 1f9ed51320
2 changed files with 15 additions and 16 deletions

View file

@ -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)