summaryrefslogtreecommitdiff
path: root/paramiko/ssh_exception.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-08-27 14:20:27 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-09-26 13:51:01 -0500
commit8cd97c0b1df8a6902c3c77d18282f604287caca9 (patch)
tree616f5f56f54b517c9d6f9b687c4f91e0b95ffa04 /paramiko/ssh_exception.py
parentb1bbacdcc4f0be50b8fe584f329d344fb13544bd (diff)
downloadparamiko-897-canonicalization.tar.gz
Implement ssh_config hostname canonicalization (WIP)897-canonicalization
- Refactor DNS lookup related junk previously only relevant to %h - Refactor guts of lookup() so it can be done >1 time - Changelog/tests/implementation for canonicalization itself Closes #897
Diffstat (limited to 'paramiko/ssh_exception.py')
-rw-r--r--paramiko/ssh_exception.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py
index b525468a..a8ec4cdd 100644
--- a/paramiko/ssh_exception.py
+++ b/paramiko/ssh_exception.py
@@ -196,3 +196,11 @@ class NoValidConnectionsError(socket.error):
def __reduce__(self):
return (self.__class__, (self.errors,))
+
+
+class CouldNotCanonicalize(SSHException):
+ """
+ Raised when hostname canonicalization fails & fallback is disabled.
+ """
+
+ pass