From a2953ec34483b5b67de0499c9777630edb7987fc Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 27 Feb 2014 09:04:09 -0800 Subject: [PATCH] Only catch xml exception --- src/NzbDrone.Test.Common/NzbDroneRunner.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Test.Common/NzbDroneRunner.cs b/src/NzbDrone.Test.Common/NzbDroneRunner.cs index ab0c82667..ab7814ec2 100644 --- a/src/NzbDrone.Test.Common/NzbDroneRunner.cs +++ b/src/NzbDrone.Test.Common/NzbDroneRunner.cs @@ -2,6 +2,7 @@ using System.Diagnostics; using System.IO; using System.Threading; +using System.Xml; using System.Xml.Linq; using System.Xml.XPath; using NUnit.Framework; @@ -116,7 +117,7 @@ namespace NzbDrone.Test.Common } } } - catch (Exception ex) + catch (XmlException ex) { Console.WriteLine("Error getting API Key from XML file: " + ex.Message, ex); }