From 283ba43330f33dac60afad28df6b5840f2ef80c0 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Sat, 3 Apr 2021 15:45:05 +0200 Subject: [PATCH] Don't parse patreon tier (errors in some windows languages?) --- Code/UI/GetWebInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/UI/GetWebInfo.cs b/Code/UI/GetWebInfo.cs index 66a2138..1a92267 100644 --- a/Code/UI/GetWebInfo.cs +++ b/Code/UI/GetWebInfo.cs @@ -43,7 +43,7 @@ namespace Flowframes.UI if (i == 0 || line.Length < 10 || values.Length < 5) continue; string name = values[0].Trim(); string status = values[4].Trim(); - float amount = float.Parse(values[7], System.Globalization.CultureInfo.InvariantCulture); + // float amount = float.Parse(values[7], System.Globalization.CultureInfo.InvariantCulture); string tier = values[9].Trim(); if (status.Contains("Active")) @@ -70,7 +70,7 @@ namespace Flowframes.UI } catch (Exception e) { - Logger.Log("Failed to parse Patreon CSV: " + e.Message, true); + Logger.Log($"Failed to parse Patreon CSV: {e.Message}\n{e.StackTrace}", true); return "Failed to load patron list."; } }