try catch an error

This commit is contained in:
CWX
2025-04-10 12:37:36 +01:00
parent 0d8d6e4fec
commit 03c3a5f4ef
@@ -214,7 +214,15 @@ public class BotHelper(
}
// TODO: this keeps randomly null refing with nothing being null, plz fix smart person
_pmcNameCache.TryAdd(cacheKey, matchingNames);
try
{
_pmcNameCache.TryAdd(cacheKey, matchingNames);
}
catch (Exception e)
{
_logger.Debug($"this keeps randomly null refing with nothing being null, plz fix smart person");
_logger.Debug(e.ToString());
}
eligibleNames = matchingNames;
}