From cc458bf8598c0beab27b5dc4331b0cf2ee654165 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 25 Oct 2025 22:41:34 +1100 Subject: scheme: ignore empty lines in schemes --- src/caelestia/utils/scheme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caelestia/utils/scheme.py b/src/caelestia/utils/scheme.py index c15c9e7..31fb77a 100644 --- a/src/caelestia/utils/scheme.py +++ b/src/caelestia/utils/scheme.py @@ -200,7 +200,7 @@ scheme: Scheme = None def read_colours_from_file(path: Path) -> dict[str, str]: - return {k.strip(): v.strip() for k, v in (line.split(" ") for line in path.read_text().splitlines())} + return {k.strip(): v.strip() for k, v in (line.split(" ") for line in path.read_text().splitlines() if line)} def get_scheme_path() -> Path: -- cgit v1.2.3-freya