Commits

Anonymous committed 629607f

fixed error on SFTPStorage.read()

  • Participants
  • Parent commits b85568a

Comments (0)

Files changed (1)

storages/backends/sftpstorage.py

     
     def _read(self, name):
         remote_path = self._remote_path(name)
-        f = self._sftp.open(remote_path, 'rb')
+        return self._sftp.open(remote_path, 'rb')
 
     def _chown(self, path, uid=None, gid=None):
         """Set uid and/or gid for file at path."""