diff --git a/wetb/utils/cluster_tools/ssh_client.py b/wetb/utils/cluster_tools/ssh_client.py index 3a2ed1781acba5fe69df5e3eab9aa57c226712e3..4a69aac132bef9a65a2af1b4f864a2b60f214d16 100644 --- a/wetb/utils/cluster_tools/ssh_client.py +++ b/wetb/utils/cluster_tools/ssh_client.py @@ -41,7 +41,7 @@ class SSHClient(object): return self.client def connect(self): - if self.password is None: + if self.password is None or self.password == "": raise IOError("Password not set") self.client = paramiko.SSHClient() self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy())