lib.ec.ssh.Paramiko: Fix exception logging

The catch-block around Paramiko's connect code throws another
exception, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-30 13:39:48 +02:00
commit 3c9ce19deb

View file

@ -26,7 +26,7 @@ class Paramiko(Base): # export
allow_agent=True
)
except Exception as e:
log(ERR, f'Failed to connect to {self.hostname} with key file {path_to_key} ({str(e)})')
log(ERR, f'Failed to connect to {self.hostname} ({str(e)})')
raise
s = ret.get_transport().open_session()
# set up the agent request handler to handle agent requests from the server