From: Lucie Scarlet Date: Thu, 25 Jul 2024 20:10:14 +0000 (+0200) Subject: Fixed small bug causing a range error X-Git-Url: https://git.chaotic.ninja/gitweb/lucie/?a=commitdiff_plain;h=a14089ba6d37a3782240d7b74aaf1ef1de0aad99;p=dotfiles.git Fixed small bug causing a range error --- 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: