From 11ad4f9e2cfabef69a1885d5a5c0152fa0beb68e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 16 Nov 2012 02:03:39 +0100 Subject: [PATCH] dont fail if sort is missing --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index fc75f337..66b2fc92 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -361,7 +361,7 @@ class Item(models.Model): else: self.poster_height = 128 self.poster_width = 80 - if not settings.USE_IMDB: + if not settings.USE_IMDB and self.sort: if self.poster_frame == -1 and self.sort.duration: self.poster_frame = self.sort.duration/2 update_poster = True