Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
  • Loading branch information
potench committed Oct 3, 2024
1 parent 444609a commit f8d6091
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tap_sftp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ def _attempt_connection(self):
)
self.sftp = client.open_sftp()
except paramiko.AuthenticationException as ex:
LOGGER.warning('AuthenticationException, please verify your credentials: %s', ex)
LOGGER.error('AuthenticationException, please verify your credentials: %s', ex)
except paramiko.SSHException as ex:
LOGGER.warning('SSHException, could not establish SSH connection: %s', ex)
LOGGER.error('SSHException, could not establish SSH connection: %s', ex)
except paramiko.BadHostKeyException as ex:
LOGGER.warning('BadHostKeyException, bad host key: %s', ex)
LOGGER.error('BadHostKeyException, bad host key: %s', ex)
except Exception as ex:
LOGGER.warning('Exception, failed to connect or establish SFTP session: %s', ex)
LOGGER.error('Exception, failed to connect or establish SFTP session: %s', ex)
finally:
if client:
client.close()
Expand Down

0 comments on commit f8d6091

Please sign in to comment.