Only catch xml exception

This commit is contained in:
Mark McDowall 2014-02-27 09:04:09 -08:00
parent 6534efae18
commit a2953ec344
1 changed files with 2 additions and 1 deletions

View File

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