Skip to content

Commit

Permalink
fix #150
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolerd committed Aug 19, 2015
1 parent 7f74e8d commit f2eaebb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions project/bl/uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def delete(self):
)
thumbnail = category_dir / 'thumb' / name
fullsized = category_dir / 'full' / name
thumbnail.unlink()
fullsized.unlink()
if thumbnail.exists():
thumbnail.unlink()
if fullsized.exists():
fullsized.unlink()
super().delete()

0 comments on commit f2eaebb

Please sign in to comment.