Commits

Anonymous committed 573ac76

Fix KeyError

  • Participants
  • Parent commits 3363e1a

Comments (0)

Files changed (1)

                 'height': preview.size[1],
                 'url': self.storage.url(preview_path)}
             return preview_dict
-        return {}
+        return {'width': 0, 'height': 0, 'url': ''}
 
 
 class ExtendedImageField(ImageField):