From 941d4414ce8fbaf0962e52cc3c23102dcd25f657 Mon Sep 17 00:00:00 2001 From: Shatil Rafiullah Date: Wed, 13 Nov 2013 23:22:48 -0800 Subject: [PATCH] Changed to using getattr() so films lacking sets/collections are also handled. --- couchpotato/core/providers/info/themoviedb/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/info/themoviedb/main.py b/couchpotato/core/providers/info/themoviedb/main.py index c9f9763b..a7901351 100644 --- a/couchpotato/core/providers/info/themoviedb/main.py +++ b/couchpotato/core/providers/info/themoviedb/main.py @@ -121,7 +121,7 @@ class TheMovieDb(MovieProvider): 'year': year, 'plot': movie.overview, 'genres': genres, - 'collection': movie.collection.name, + 'collection': getattr(movie.collection, 'name', None), } movie_data = dict((k, v) for k, v in movie_data.iteritems() if v)