Try catching any exception

This commit is contained in:
JustArchi 2021-05-02 19:18:46 +02:00
parent d394ba60c7
commit cac5d5fadb

View file

@ -253,7 +253,7 @@ namespace ArchiSteamFarm {
public static string ToHumanReadable(this TimeSpan timeSpan) {
try {
return timeSpan.Humanize(3, maxUnit: TimeUnit.Year, minUnit: TimeUnit.Second);
} catch (CultureNotFoundException) {
} catch {
// Workaround for lack of support at Humanizer side
return timeSpan.ToString();
}