Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docker/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ def __init__(self, base_url=None, version=None,
self._custom_adapter = SSHAdapter(
base_url, timeout, pool_connections=num_pools
)
except NameError:
except NameError as e:
# do not hide orriginal exception as it may contain important info
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: orriginal -> original

raise DockerException(
'Install paramiko package to enable ssh:// support'
"Paramiko failure while trying ssh:// protocol:\n%s" % e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if changing the message is necessary here.

)
self.mount('http+docker://ssh', self._custom_adapter)
self._unmount('http://', 'https://')
Expand Down