From babbfffece5589de8d13cb4c413be94dd69430fc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 10 Aug 2007 10:45:45 +0000 Subject: [PATCH] only if director exists --- scrapeit/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapeit/imdb.py b/scrapeit/imdb.py index 80b3809..41db0f0 100644 --- a/scrapeit/imdb.py +++ b/scrapeit/imdb.py @@ -157,7 +157,7 @@ class IMDb: director = self.parseCredits().get('director', None) if director: director = director[0] - parsed_value = parsed_value.replace(director, '') + parsed_value = parsed_value.replace(director, '') if parsed_value.startswith("'s"): parsed_value = parsed_value[2:].strip() parsed_value = parsed_value.strip()