Bug 255 fixed
This commit is contained in:
parent
b105540141
commit
ddaf070ad7
@ -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).
|
||||
os.remove(self._resolve_filepath(filepath))
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user