forked from chomp/BotGenerator
If the file being parsed has no bots, skip over it instead of throwing an exception
This commit is contained in:
parent
6df06c5063
commit
5f7289f88f
@ -43,6 +43,13 @@ namespace Generator
|
||||
try
|
||||
{
|
||||
var bots = ParseJson(json, file);
|
||||
|
||||
if (bots == null || bots.Count == 0)
|
||||
{
|
||||
Console.WriteLine($"no bots found, skipping file: {splitFile.Last()}");
|
||||
continue;
|
||||
}
|
||||
|
||||
Console.WriteLine($"parsing: {bots.Count} bots in file {splitFile.Last()}");
|
||||
foreach (var bot in bots)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user