Show friendlier error message when authentication fails

feature/node-rewrite
Sven Slootweg 12 years ago
parent be7cc50582
commit b3b99f494a

@ -79,6 +79,9 @@ def show_list():
except KeyError, ValueError: except KeyError, ValueError:
print "That was not a valid option. Try again. " print "That was not a valid option. Try again. "
show_list() show_list()
except paramiko.AuthenticationException:
print "Could not connect to the node."
exit(1)
print "#############################################################" print "#############################################################"
print "### CVM OpenVZ shell dropper ###" print "### CVM OpenVZ shell dropper ###"

Loading…
Cancel
Save