mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #840 from wabbajack-tools/number-format-exceptions-with-nexus
Give some debug information when we have a number format exception wi…
This commit is contained in:
commit
a4d6ef2331
@ -79,18 +79,27 @@ namespace Wabbajack.Lib.Downloaders
|
||||
throw;
|
||||
}
|
||||
|
||||
return new State
|
||||
try
|
||||
{
|
||||
Name = NexusApiUtils.FixupSummary(info.name),
|
||||
Author = NexusApiUtils.FixupSummary(info.author),
|
||||
Version = general.version ?? "0.0.0.0",
|
||||
ImageURL = info.picture_url,
|
||||
IsNSFW = info.contains_adult_content,
|
||||
Description = NexusApiUtils.FixupSummary(info.summary),
|
||||
Game = GameRegistry.GetByFuzzyName((string)general.gameName).Game,
|
||||
ModID = long.Parse(general.modID),
|
||||
FileID = long.Parse(general.fileID)
|
||||
};
|
||||
return new State
|
||||
{
|
||||
Name = NexusApiUtils.FixupSummary(info.name),
|
||||
Author = NexusApiUtils.FixupSummary(info.author),
|
||||
Version = general.version ?? "0.0.0.0",
|
||||
ImageURL = info.picture_url,
|
||||
IsNSFW = info.contains_adult_content,
|
||||
Description = NexusApiUtils.FixupSummary(info.summary),
|
||||
Game = GameRegistry.GetByFuzzyName((string)general.gameName).Game,
|
||||
ModID = long.Parse(general.modID),
|
||||
FileID = long.Parse(general.fileID)
|
||||
};
|
||||
}
|
||||
catch (FormatException)
|
||||
{
|
||||
Utils.Log(
|
||||
$"Cannot parse ModID/FileID from {(string)general.gameName} {(string)general.modID} {(string)general.fileID}");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user