Commits

Yann Malet committed 1ed3243

This modification aims to fix the bug #70 of django-storage for the cloudfiles backend. The goal is to only try to delete the file if the file exits.

  • Participants
  • Parent commits def7324
  • Branches bug_70

Comments (0)

Files changed (1)

File storages/backends/mosso.py

         """
         Deletes the specified file from the storage system.
         """
-        self.container.delete_object(name)
+        # If the file exists, delete it.
+        if self.exists(name):
+            self.container.delete_object(name)
 
     def exists(self, name):
         """