diff --git a/src/wormhole/cli/cmd_ssh.py b/src/wormhole/cli/cmd_ssh.py index cbd5556..2334ee7 100644 --- a/src/wormhole/cli/cmd_ssh.py +++ b/src/wormhole/cli/cmd_ssh.py @@ -87,7 +87,7 @@ def invite(cfg, reactor=reactor): print() if cfg.ssh_user is None: - ssh_path = expanduser('~/.ssh/'.format(cfg.ssh_user)) + ssh_path = expanduser('~/.ssh/') else: ssh_path = expanduser('~{}/.ssh/'.format(cfg.ssh_user)) auth_key_path = join(ssh_path, 'authorized_keys') diff --git a/src/wormhole/test/test_cli.py b/src/wormhole/test/test_cli.py index 3b92c34..adcc685 100644 --- a/src/wormhole/test/test_cli.py +++ b/src/wormhole/test/test_cli.py @@ -988,7 +988,7 @@ class ZeroMode(ServerBase, unittest.TestCase): "wormhole receive -0{NL}" "{NL}" "text message sent{NL}").format( - bytes=len(message), code=send_cfg.code, NL=NL) + bytes=len(message), NL=NL) self.failUnlessEqual(send_stderr, expected) # check receiver