diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-14 20:45:57 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-14 20:45:57 +1000 |
| commit | e560a6e3d2e9180e3f168d274e583bb129256844 (patch) | |
| tree | f75e6b97642c79ec990ec3a6280521aee0f48f93 /src | |
| parent | version: fix pacman + use shell version helper (diff) | |
| download | caelestia-cli-e560a6e3d2e9180e3f168d274e583bb129256844.tar.gz caelestia-cli-e560a6e3d2e9180e3f168d274e583bb129256844.tar.bz2 caelestia-cli-e560a6e3d2e9180e3f168d274e583bb129256844.zip | |
version: catch correct error
Diffstat (limited to 'src')
| -rw-r--r-- | src/caelestia/utils/version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caelestia/utils/version.py b/src/caelestia/utils/version.py index e8ec8e7..15f346f 100644 --- a/src/caelestia/utils/version.py +++ b/src/caelestia/utils/version.py @@ -36,7 +36,7 @@ def print_version() -> None: shell_ver = subprocess.check_output(["/usr/lib/caelestia/version", "-s"], text=True).strip() print("Shell:") print(" ", shell_ver) - except subprocess.CalledProcessError: + except FileNotFoundError: print("Shell: version helper not available") print() |