Permalink
Browse files

if paramiko agent has no keys, it might have no keys attribute. check…

… for that
  • Loading branch information...
1 parent 5d92fa5 commit 0e41f1b21cf450278ef4ab4da14976dd2e22b32c @jmathes jmathes committed Feb 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 dripbox.py
View
2 dripbox.py
@@ -109,7 +109,7 @@ def launch(username_p, host_p, remote_path, port_p=None):
def get_ssh_key():
agent = paramiko.Agent()
- if agent.keys:
+ if hasattr(agent, 'keys') and agent.keys:
# TODO: support having more than one key loaded
if len(agent.keys) > 1:
print ("You have more than one key in your SSH Agent"

0 comments on commit 0e41f1b

Please sign in to comment.