From e1d4df79378a075ead388f06d8c2bbc2029914b1 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 5 Oct 2014 18:46:16 +0200 Subject: [PATCH] Give api encoding error log --- couchpotato/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/api.py b/couchpotato/api.py index b21cfeb0..cd01197a 100644 --- a/couchpotato/api.py +++ b/couchpotato/api.py @@ -143,6 +143,8 @@ class ApiHandler(RequestHandler): else: self.write(result) self.finish() + except UnicodeDecodeError: + log.error('Failed proper encode: %s', traceback.format_exc()) except: log.debug('Failed doing request, probably already closed: %s', (traceback.format_exc())) try: self.finish({'success': False, 'error': 'Failed returning results'})