summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ssh.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh.py b/ssh.py
index 0ae8d120..450383dc 100644
--- a/ssh.py
+++ b/ssh.py
@@ -52,6 +52,9 @@ def version():
52 """return ssh version as a tuple""" 52 """return ssh version as a tuple"""
53 try: 53 try:
54 return _parse_ssh_version() 54 return _parse_ssh_version()
55 except FileNotFoundError:
56 print('fatal: ssh not installed', file=sys.stderr)
57 sys.exit(1)
55 except subprocess.CalledProcessError: 58 except subprocess.CalledProcessError:
56 print('fatal: unable to detect ssh version', file=sys.stderr) 59 print('fatal: unable to detect ssh version', file=sys.stderr)
57 sys.exit(1) 60 sys.exit(1)