From cf867196073feaa707e25aa5ba7a64f86ff203b5 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 23 Jan 2014 00:08:38 +0100 Subject: [PATCH] Encode before logging --- couchpotato/core/providers/info/themoviedb/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/providers/info/themoviedb/main.py b/couchpotato/core/providers/info/themoviedb/main.py index 5207eb11..d301db2b 100644 --- a/couchpotato/core/providers/info/themoviedb/main.py +++ b/couchpotato/core/providers/info/themoviedb/main.py @@ -1,5 +1,5 @@ from couchpotato.core.event import addEvent -from couchpotato.core.helpers.encoding import simplifyString, toUnicode +from couchpotato.core.helpers.encoding import simplifyString, toUnicode, ss from couchpotato.core.helpers.variable import tryInt from couchpotato.core.logger import CPLog from couchpotato.core.providers.info.base import MovieProvider @@ -166,7 +166,7 @@ class TheMovieDb(MovieProvider): try: image_url = getattr(movie, type).geturl(size = size) except: - log.debug('Failed getting %s.%s for "%s"', (type, size, str(movie))) + log.debug('Failed getting %s.%s for "%s"', (type, size, ss(str(movie)))) return image_url