summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-12-03 16:55:53 -0500
committerJeff Forcier <jeff@bitprophet.org>2019-12-03 16:55:53 -0500
commit8fd7385f2338036d2289ebfae43ddfa8f0b9c446 (patch)
tree3c60cb2b5ba8860ded812b0ec02721f9778b0c5d
parent109b14c6510d85df935a546a5fe32f1f069cc2b2 (diff)
Comment a particularly egregious example of message passing
-rw-r--r--paramiko/pkey.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index 0dbe97fc..ef1dac18 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -515,6 +515,9 @@ class PKey(object):
arr.append(s)
break
except Exception as e:
+ # PKey-consuming code frequently wants to save-and-skip-over issues
+ # with loading keys, and uses SSHException as the (really friggin
+ # awful) signal for this. So for now...we do this.
raise SSHException(str(e))
return tuple(arr)