From 55ddd65c7ed400c219cd1697e4dd8d7f85fb4ac8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 28 Feb 2013 21:22:22 +0530 Subject: [PATCH] ignore invalid entries --- oxdata/movie/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oxdata/movie/models.py b/oxdata/movie/models.py index a7525e4..9ed0295 100644 --- a/oxdata/movie/models.py +++ b/oxdata/movie/models.py @@ -283,6 +283,9 @@ class Match(models.Model): @classmethod def update_item(cls, item): info = item.json() + #ignore values without title, must be invalid + if not 'title' in info: + return data = [] if 'originalTitle' in info: data.append({