import cgitb


def FormatException(exc_info):
  """Gets information from exception info tuple.

  Args:
    exc_info: exception info tuple (type, value, traceback)
  Returns:
    exception description in a list - wsgi application response format.
  """
  return [cgitb.handler(exc_info)]