mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-02-06 11:50:56 +02:00
Only catch xml exception
This commit is contained in:
parent
6534efae18
commit
a2953ec344
@ -2,6 +2,7 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using System.Xml;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
using System.Xml.XPath;
|
using System.Xml.XPath;
|
||||||
using NUnit.Framework;
|
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);
|
Console.WriteLine("Error getting API Key from XML file: " + ex.Message, ex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user