diff options
-rw-r--r-- | paramiko/hostkeys.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index d0660cc8..94474e40 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -156,6 +156,7 @@ class HostKeys(MutableMapping): for e in list(self._entries): if e.key.get_name() == key: self._entries.remove(e) + break else: raise KeyError(key) |