From a14089ba6d37a3782240d7b74aaf1ef1de0aad99 Mon Sep 17 00:00:00 2001 From: Lucie Scarlet Date: Thu, 25 Jul 2024 22:10:14 +0200 Subject: [PATCH] Fixed small bug causing a range error --- i3/uptime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/uptime.py b/i3/uptime.py index 01ee9c8..36f1f47 100644 --- a/i3/uptime.py +++ b/i3/uptime.py @@ -10,7 +10,7 @@ def main() -> int: well_formatted: str = str(raw_formatted).split(".")[0][:-3] fmt = well_formatted.split(".")[0] daysfmt = fmt.split(" days, ") - if len(daysfmt) > 2: + if len(daysfmt) >= 2: f2: str = daysfmt[1] days: str | None = daysfmt[0] else: -- 2.45.2