aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/storage/cloudfiles.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-11-24 15:24:58 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-11-24 15:24:58 -0600
commit99d2ac1d83962fb4dc38f01d63d2ad4036226765 (patch)
tree5c8a3a8c6f7ee5ea3662a6c791855864c5784e1a /mediagoblin/storage/cloudfiles.py
parent30188321531e1b0d3c78166498702bbd8c7dc2bc (diff)
parent6506b1e22c70b55a73ee4cb391aebaf73db79ef9 (diff)
downloadmediagoblin-99d2ac1d83962fb4dc38f01d63d2ad4036226765.tar.lz
mediagoblin-99d2ac1d83962fb4dc38f01d63d2ad4036226765.tar.xz
mediagoblin-99d2ac1d83962fb4dc38f01d63d2ad4036226765.zip
Merge remote-tracking branch 'remotes/jwandborg/master'
Diffstat (limited to 'mediagoblin/storage/cloudfiles.py')
-rw-r--r--mediagoblin/storage/cloudfiles.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/mediagoblin/storage/cloudfiles.py b/mediagoblin/storage/cloudfiles.py
index 0d3cc3df..51b73579 100644
--- a/mediagoblin/storage/cloudfiles.py
+++ b/mediagoblin/storage/cloudfiles.py
@@ -98,8 +98,14 @@ class CloudFilesStorage(StorageInterface):
def delete_file(self, filepath):
# TODO: Also delete unused directories if empty (safely, with
# checks to avoid race conditions).
- self.container.delete_object(
- self._resolve_filepath(filepath))
+ try:
+ self.container.delete_object(
+ self._resolve_filepath(filepath))
+ except cloudfiles.container.ResponseError:
+ pass
+ finally:
+ pass
+
def file_url(self, filepath):
return '/'.join([