mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-07 15:59:28 -05:00
version: catch correct error
This commit is contained in:
@@ -36,7 +36,7 @@ def print_version() -> None:
|
|||||||
shell_ver = subprocess.check_output(["/usr/lib/caelestia/version", "-s"], text=True).strip()
|
shell_ver = subprocess.check_output(["/usr/lib/caelestia/version", "-s"], text=True).strip()
|
||||||
print("Shell:")
|
print("Shell:")
|
||||||
print(" ", shell_ver)
|
print(" ", shell_ver)
|
||||||
except subprocess.CalledProcessError:
|
except FileNotFoundError:
|
||||||
print("Shell: version helper not available")
|
print("Shell: version helper not available")
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|||||||
Reference in New Issue
Block a user