why does the poster not exist?

This commit is contained in:
j 2011-10-31 11:46:59 +01:00
commit 910c6ac674
2 changed files with 2 additions and 2 deletions

View file

@ -291,7 +291,7 @@ class Item(models.Model):
self.itemId = self.oxdbId
#FIXME: move files to new id here
if self.poster:
if self.poster and os.path.exists(self.poster.path):
self.poster_height = self.poster.height
self.poster_width = self.poster.width
else: