Fix admin bugs

This commit is contained in:
cuom1999 2024-06-01 01:37:29 -05:00
parent bb891e5b49
commit 570c3071ee
5 changed files with 7 additions and 13 deletions

View file

@ -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):