Bug 255 fixed

This commit is contained in:
Jorge Araya Navarro 2012-06-22 15:15:57 -06:00
parent b105540141
commit ddaf070ad7

View File

@ -64,7 +64,12 @@ 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
def file_url(self, filepath):
if not self.base_url: