diff options
author | Parth Buch | 2012-07-20 14:58:21 +0530 |
---|---|---|
committer | Parth Buch | 2012-07-20 14:58:21 +0530 |
commit | ba3303791fa9487ac090eb58123e253113f44884 (patch) | |
tree | fce95bd6dbd1625c377b065dbe02550542bd3ed0 /stapp | |
parent | 1f1c2549a0b4ed4f6ffe42663b93f21eef3b4afb (diff) | |
download | stproject-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.py | 5 |
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 |