diff --git a/StatsFetcher/FileProcessor.cs b/StatsFetcher/FileProcessor.cs index 31c1692..299f4f2 100644 --- a/StatsFetcher/FileProcessor.cs +++ b/StatsFetcher/FileProcessor.cs @@ -35,8 +35,8 @@ public static async Task ProcessReplayFile(string path, Game game) var replayData = DataParser.ParseReplay(tmpPath, true, true); var replay = replayData.Item2; - if (replayData.Item1 != DataParser.ReplayParseResult.Success) { - throw new Exception("Unable to parse replay: " + replayData.Item1); + if (replayData.Item2 == null) { + throw new Exception($"Unable to parse replay: {replayData.Item1}"); } foreach (var profile in game.Players) {