From 603abb166fc93f583d6c4baef87744184fbe8ea0 Mon Sep 17 00:00:00 2001 From: Hardy Pottinger Date: Thu, 26 Oct 2023 16:00:01 -0500 Subject: [PATCH 1/2] Use warning instead of error for read_private_key_file function --- sshtunnel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshtunnel.py b/sshtunnel.py index c48e330..d69d682 100644 --- a/sshtunnel.py +++ b/sshtunnel.py @@ -1311,7 +1311,7 @@ def read_private_key_file(pkey_file, break except paramiko.PasswordRequiredException: if logger: - logger.error('Password is required for key {0}' + logger.warning('Password is required for key {0}' .format(pkey_file)) break except paramiko.SSHException: From 1b645e88fcbef2d6d774e7773fad3895004a4683 Mon Sep 17 00:00:00 2001 From: Pavel White Date: Sun, 10 Mar 2024 18:20:41 +0300 Subject: [PATCH 2/2] chore: code style --- sshtunnel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshtunnel.py b/sshtunnel.py index d69d682..fe1699a 100644 --- a/sshtunnel.py +++ b/sshtunnel.py @@ -1312,7 +1312,7 @@ def read_private_key_file(pkey_file, except paramiko.PasswordRequiredException: if logger: logger.warning('Password is required for key {0}' - .format(pkey_file)) + .format(pkey_file)) break except paramiko.SSHException: if logger: