mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-23 13:22:17 +03:00
file transfer via ssh was fixed about exception throwing
This commit is contained in:
parent
bff63ae806
commit
7d22232c1c
1 changed files with 2 additions and 1 deletions
|
@ -43,9 +43,10 @@ class FileTransfer(object):
|
|||
self.logger.debug('[FileTransfer] File was downloaded to {} from {}'.format(local_path, remote_path))
|
||||
except Exception as e:
|
||||
self.logger.error('[FileTransfer] A problem occurred while downloading file. Exception message: {}'.format(str(e)))
|
||||
raise
|
||||
finally:
|
||||
self.connection.close()
|
||||
self.logger.debug('[FileTransfer] Connection is closed successfully')
|
||||
self.logger.debug('[FileTransfer] Connection is closed successfully')
|
||||
|
||||
def connect(self):
|
||||
self.logger.debug('[FileTransfer] Connecting to {} via {}'.format(self.target_hostname, self.port))
|
||||
|
|
Loading…
Reference in a new issue