mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 21:42:21 +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,6 +43,7 @@ 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')
|
||||
|
|
Loading…
Reference in a new issue