Merge pull request #1428 from MRX-72/fix-ssh-timeout-error

SSH: catch TimeoutError during login with a clean fail message
This commit is contained in:
Alex authored and GitHub committed 2026-09-19 13:42:04 +02:00
commit 9eb36e489b
1 file changed
+2
+2
View File
@@ -134,6 +134,8 @@ class ssh(connection):
self.logger.error(f"Internal Paramiko error for {username}:{process_secret(password)}, {e}")
else:
self.logger.exception(e)
except TimeoutError:
self.logger.fail(f"{username}:{process_secret(password)} Connection timed out")
except Exception as e:
self.logger.exception(e)
self.conn.close()