Private
Public Access
1
0

Merge branch 'hotfix/v21.2.1'

This commit is contained in:
2024-05-22 21:43:01 +02:00
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -3873,7 +3873,7 @@ def auto_delete_file_on_delete(sender, instance, **kwargs):
try:
dirname = 'media/strokedata_{id}.parquet.gz'.format(id=instance.id)
os.remove(dirname)
except FileNotFoundError:
except (FileNotFoundError, IsADirectoryError):
try:
shutil.rmtree(dirname)
except:
Binary file not shown.