From ce8b693922711110a4b9f5c48437ac3e7d3d42fa Mon Sep 17 00:00:00 2001 From: j Date: Fri, 1 Nov 2019 16:50:40 +0100 Subject: [PATCH] keys might be none --- 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 dfd593df..a5bf7064 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -639,7 +639,7 @@ class Item(models.Model): if self.poster_height: i['posterRatio'] = self.poster_width / self.poster_height - if 'source' in keys: + if keys and 'source' in keys: i['source'] = self.files.filter(selected=True).exclude(data='').exists() streams = self.streams()