code: def format_exception(e):
      
      from .utils.printing import fill
      return '\n'.join(fill(line) for line in traceback.format_exception_only(type(e), e))
docs: Returns a string containing the type and text of the exception.