Skip to content

Commit

Permalink
[sftp] Fix to allow connection exceptions to be raised (#835) (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
pansapiens authored Feb 15, 2020
1 parent ec9579b commit 867050a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ By order of apparition, thanks:
* Martey Dodoo
* Chris Rink
* Shaung Cheng (S3 docs)
* Andrew Perry (Bug fixes in SFTPStorage)


Extra thanks to Marty for adding this in Django,
Expand Down
2 changes: 0 additions & 2 deletions storages/backends/sftpstorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ def _connect(self):
self._connect()
else:
raise paramiko.AuthenticationException(e)
except Exception as e:
print(e)

if self._ssh.get_transport():
self._sftp = self._ssh.open_sftp()
Expand Down

0 comments on commit 867050a

Please sign in to comment.