Reoved potential null

This commit is contained in:
2024-02-13 14:09:52 +00:00
parent 6f396c2090
commit ae3e70313c

View File

@@ -200,9 +200,10 @@ namespace lottery_co_uk_scraper.NationalLottery
{
return bonusBall;
}
_logger.LogError("Failed to parse {className} value: {x.InnerText}", ballClass, x.InnerText);
throw new Exception($"Failed to parse {ballClass} value: {x.InnerText}");
_logger.LogError("Failed to parse {className}", ballClass);
throw new Exception($"Failed to parse {ballClass}");
}
catch
{