Skip to content

Commit 830b36d

Browse files
committed
_options modified not good approach
1 parent e5abf2a commit 830b36d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sshfs/config.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ def parse_config(*, host, user=(), port=(), local_user=None, config_files=None):
4545
host,
4646
port,
4747
)
48-
config._options["ProxyCommand"] = config._options["ProxyCommand"].split()
48+
if config._options.get("ProxyCommand", None):
49+
config._options["ProxyCommand"] = config["ProxyCommand"].split()
4950
return config

0 commit comments

Comments
 (0)