From 50c15bfc8046c675a9e3934869370cecce345b41 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 7 Mar 2016 18:12:01 +0000 Subject: [PATCH] fixes --- PlexRequests.Api/CouchPotatoApi.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/PlexRequests.Api/CouchPotatoApi.cs b/PlexRequests.Api/CouchPotatoApi.cs index 4366f9bb1..cf9fd7d04 100644 --- a/PlexRequests.Api/CouchPotatoApi.cs +++ b/PlexRequests.Api/CouchPotatoApi.cs @@ -56,10 +56,18 @@ namespace PlexRequests.Api if (obj.Count > 0) { - Log.Trace("CP movie obj[\"success\"] = {0}", obj["success"]); - var result = (bool)obj["success"]; - Log.Trace("CP movie Add result {0}", result); - return result; + try + { + Log.Trace("CP movie obj[\"success\"] = {0}", obj["success"]); + var result = (bool)obj["success"]; + Log.Trace("CP movie Add result {0}", result); + return result; + } + catch (Exception e) + { + Log.Fatal(e); + return false; + } } return false; }