mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 23:09:27 -05:00
scheme: ignore empty lines in schemes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user