aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/storage/filestorage.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/storage/filestorage.py')
-rw-r--r--mediagoblin/storage/filestorage.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/mediagoblin/storage/filestorage.py b/mediagoblin/storage/filestorage.py
index 1252a3f5..00d6335e 100644
--- a/mediagoblin/storage/filestorage.py
+++ b/mediagoblin/storage/filestorage.py
@@ -64,12 +64,7 @@ class BasicFileStorage(StorageInterface):
def delete_file(self, filepath):
# TODO: Also delete unused directories if empty (safely, with
# checks to avoid race conditions).
- try:
- os.remove(self._resolve_filepath(filepath))
- except OSError:
- # the file do not exists!
- # This should fix bug #255
- pass
+ os.remove(self._resolve_filepath(filepath))
def file_url(self, filepath):
if not self.base_url: