From 1b9c4d288c8894f22958b5ade8cd9723cf0dab31 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 15 Oct 2011 19:03:32 +0200 Subject: [PATCH] check before use --- ox/web/imdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index a9d3d88..5771b5b 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -330,7 +330,8 @@ class Imdb(SiteParser): self[key] = filter(lambda x: x.lower() != 'home', self[key]) if 'creator' in self: - self['episodeDirector'] = self['director'] + if 'director' in self: + self['episodeDirector'] = self['director'] self['director'] = self['creator'] if 'series' in self: if 'episodeTitle' in self: