mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Try catching any exception
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user