From 2bdb7a7915bb74ec1b54feb4203d286e48f92065 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 19 Oct 2012 00:06:34 +1300 Subject: [PATCH] Fixed a bug in imdb --- plugins/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/imdb.py b/plugins/imdb.py index d0628a1..5d015fa 100755 --- a/plugins/imdb.py +++ b/plugins/imdb.py @@ -17,7 +17,7 @@ def imdb(inp): else: content = http.get_json("http://www.omdbapi.com/", t=strip) - if content['Error'] == 'Movie not found!': + if content.get('Error', None) == 'Movie not found!': return 'Movie not found!' elif content['Response'] == 'True': content['URL'] = 'http://www.imdb.com/title/%(imdbID)s' % content