parameters: (self, api_key)
return_statement: return self.prepare_exception(self.success())
docstring: Execute the view code and return a response.
docstring_summary: Execute the view code and return a response.
docstring_tokens: Execute the view code and return a response .
function: 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())
function_tokens: def view ( self , api_key ) : try : self . submit ( api_key ) except RedisError : raise self . prepare_exception ( ServiceUnavailable ( ) ) return self . prepare_exception ( self . success ( ) )