You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wouldn't it be better to raise the exception to allow it to be handled by calling code ?
It's been causing issues in my use case, since there's no easy way to handle connection failure to SFTP servers that are offline.
eg attempting to connect to a server that doesn't exist:
Specifically:
django-storages/storages/backends/sftpstorage.py
Lines 81 to 82 in ec9579b
Wouldn't it be better to raise the exception to allow it to be handled by calling code ?
It's been causing issues in my use case, since there's no easy way to handle connection failure to SFTP servers that are offline.
eg attempting to connect to a server that doesn't exist:
Outputs:
rather than raising an exception.
I can work around this issue by calling these private methods before attempting to use the
SFTPStorage
instance, but it's more of a hacky workaround:The text was updated successfully, but these errors were encountered: