1. Thiago Faria de Andrade
  2. django-storages

Commits

David Larlet  committed 4767343 Merge

Merging bug_70 branch

Comments (0)

Files changed (1)

File storages/backends/mosso.py Modified

View file
  • Ignore whitespace
  • Hide word diff
         """
         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):
         """