(self, method, *args)
return response, exception
Wrap calls to the json-rpc proxy to conveniently handle exceptions.
        @return response, exception
Wrap calls to the json-rpc proxy to conveniently handle exceptions.
Wrap calls to the json - rpc proxy to conveniently handle exceptions .
def _jsonrpc_api_request(self, method, *args):
        """
        Wrap calls to the json-rpc proxy to conveniently handle exceptions.
        @return response, exception
        """
        response = None
        exception = None
        
        try:
            self._wake_screen()    
            response = self._jsonrpc._request(method, args)
        except jsonrpclib.ProtocolError, e:
            """
            Protocol errors usually means a method could not be executed because
            for example a seek is requested when there's no movie playing.
            """
            self.log.debug('Caught protocol error %s', e)
            exception = e
        except Exception, e:
            exception = e
            
        return response, exception
def _jsonrpc_api_request ( self , method , * args ) : response = None exception = None try : self . _wake_screen ( ) response = self . _jsonrpc . _request ( method , args ) except jsonrpclib . ProtocolError , e : """
            Protocol errors usually means a method could not be executed because
            for example a seek is requested when there's no movie playing.
            """ self . log . debug ( 'Caught protocol error %s' , e ) exception = e except Exception , e : exception = e return response , exception