summaryrefslogtreecommitdiff
path: root/stapp
diff options
context:
space:
mode:
authorParth Buch2012-07-20 14:58:21 +0530
committerParth Buch2012-07-20 14:58:21 +0530
commitba3303791fa9487ac090eb58123e253113f44884 (patch)
treefce95bd6dbd1625c377b065dbe02550542bd3ed0 /stapp
parent1f1c2549a0b4ed4f6ffe42663b93f21eef3b4afb (diff)
downloadstproject-ba3303791fa9487ac090eb58123e253113f44884.tar.gz
stproject-ba3303791fa9487ac090eb58123e253113f44884.tar.bz2
stproject-ba3303791fa9487ac090eb58123e253113f44884.zip
Catching the exception on deletion of thumbnail
Diffstat (limited to 'stapp')
-rw-r--r--stapp/video/signals.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/stapp/video/signals.py b/stapp/video/signals.py
index e64055f..27292ba 100644
--- a/stapp/video/signals.py
+++ b/stapp/video/signals.py
@@ -7,4 +7,7 @@ def delete_files(sender, **kwargs):
#default_storage.delete(school.pdf.path)
default_storage.delete(video.filename.path)
default_storage.delete(video.image.path)
- default_storage.delete(video.thumbnail.path)
+ try:
+ default_storage.delete(video.thumbnail.path)
+ except:
+ pass