diff options
| -rw-r--r-- | ishtar_common/models.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 02fbe05b9..02786a8e4 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -585,7 +585,11 @@ class ImageModel(models.Model):                                  save=False)                  if old_path != self.image.path: -                    os.remove(old_path) +                    try: +                        os.remove(old_path) +                    except OSError: +                        # already clean +                        pass                  # save the thumbnail                  self.thumbnail.save( | 
