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'})