(self, api_key)
return self.prepare_exception(self.success())
Execute the view code and return a response.
Execute the view code and return a response.
Execute the view code and return a response .
def view(self, api_key):
        """
        Execute the view code and return a response.
        """
        try:
            self.submit(api_key)
        except RedisError:
            raise self.prepare_exception(ServiceUnavailable())

        return self.prepare_exception(self.success())
def view ( self , api_key ) : try : self . submit ( api_key ) except RedisError : raise self . prepare_exception ( ServiceUnavailable ( ) ) return self . prepare_exception ( self . success ( ) )