summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)