From 2d5903e91b7bf759bd39e3a6b8d4e94c7d383785 Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Fri, 3 Jul 2026 21:10:50 +0100 Subject: [PATCH] fix(networks): keep reference mtime a datetime for date sort strptime was handed the stat datetime instead of the date string, so it always failed and left a raw string mtime; the Date sort then crashed on mixed str/datetime items. Parse the date string, falling back to stat mtime. --- modules/ui_extra_networks_checkpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py index 793edeab9..93a6e2f09 100644 --- a/modules/ui_extra_networks_checkpoints.py +++ b/modules/ui_extra_networks_checkpoints.py @@ -86,9 +86,9 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage): mtime = _mtime else: try: - mtime = datetime.strptime(_mtime, '%Y %B') # 2025 January + mtime = datetime.strptime(mtime, '%Y %B') # 2025 January except Exception: - pass + mtime = _mtime if size == 0: size = _size if len(v.get("subfolder", "")) > 0: