diff options
-rwxr-xr-x | fbin.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -140,6 +140,9 @@ class Application(object): session.delete(file) session.commit() os.unlink(file.get_path()) + thumbfile = os.path.join(settings.thumb_directory, file.hash + '.jpg') + if os.path.exists(thumbfile): + os.unlink(thumbfile) except: raise finally: |