Fix admin bugs
This commit is contained in:
parent
bb891e5b49
commit
570c3071ee
5 changed files with 7 additions and 13 deletions
|
@ -51,7 +51,10 @@ class ProblemDataStorage(FileSystemStorage):
|
|||
|
||||
def delete_directory(self, name):
|
||||
directory_path = self.path(name)
|
||||
shutil.rmtree(directory_path)
|
||||
try:
|
||||
shutil.rmtree(directory_path)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
||||
class ProblemDataError(Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue