summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-25 22:41:34 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-25 22:41:34 +1100
commitcc458bf8598c0beab27b5dc4331b0cf2ee654165 (patch)
tree3bb431c8796742d18bf6a85fc0f870ef6b7dc7e1
parent[CI] chore: update flake (diff)
downloadcaelestia-cli-cc458bf8598c0beab27b5dc4331b0cf2ee654165.tar.gz
caelestia-cli-cc458bf8598c0beab27b5dc4331b0cf2ee654165.tar.bz2
caelestia-cli-cc458bf8598c0beab27b5dc4331b0cf2ee654165.zip
scheme: ignore empty lines in schemes
-rw-r--r--src/caelestia/utils/scheme.py2
1 files changed, 1 insertions, 1 deletions
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: