fix for not implemented exception in moddb downloader

This commit is contained in:
Timothy Baldridge 2019-10-13 08:18:21 -06:00
parent 8ede69a14b
commit 704bfeb352
4 changed files with 8 additions and 3 deletions

View File

@ -14,6 +14,12 @@ namespace Wabbajack.Test
[TestClass]
public class DownloaderTests
{
[TestMethod]
public void TestAllPrepares()
{
DownloadDispatcher.Downloaders.Do(d => d.Prepare());
}
[TestMethod]
public void MegaDownload()
{

View File

@ -9,7 +9,7 @@ namespace Wabbajack.Downloaders
{
public static class DownloadDispatcher
{
private static readonly List<IDownloader> Downloaders = new List<IDownloader>()
public static readonly List<IDownloader> Downloaders = new List<IDownloader>()
{
new MegaDownloader(),
new DropboxDownloader(),

View File

@ -29,7 +29,6 @@ namespace Wabbajack.Downloaders
public void Prepare()
{
throw new NotImplementedException();
}
public class State : AbstractDownloadState

View File

@ -141,7 +141,7 @@ namespace Wabbajack.NexusApi
dailyRemaining = int.Parse(response.Headers.GetValues("x-rl-daily-remaining").First());
hourlyRemaining = int.Parse(response.Headers.GetValues("x-rl-hourly-remaining").First());
}
catch (InvalidDataException ex)
catch (InvalidDataException)
{
Utils.Log("Couldn't find x-rl-*-remaining headers in Nexus response. Ignoring");
return;