Skip to content
Browse files

Fix small bug when no key given to client

  • Loading branch information...
1 parent cde7916 commit 5bb27f6942aac551a99fcf23d131ae6af51e59b3 @fperez fperez committed with minrk Nov 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/zmq/parallel/client.py
View
2 IPython/zmq/parallel/client.py
@@ -231,7 +231,7 @@ def __init__(self, addr='tcp://127.0.0.1:10101', context=None, username=None, de
password = getpass("SSH Password for %s: "%sshserver)
ssh_kwargs = dict(keyfile=sshkey, password=password, paramiko=paramiko)
- if os.path.isfile(exec_key):
+ if exec_key is not None and os.path.isfile(exec_key):
arg = 'keyfile'
else:
arg = 'key'

0 comments on commit 5bb27f6

Please sign in to comment.
Something went wrong with that request. Please try again.