code: def humanise_exception(exception):
      
      trace = ''.join(traceback.format_tb(sys.exc_info()[2]))
      name = exception.__class__.__name__
      return name, trace
docs: Humanise a python exception by giving the class name and traceback.
  
      The function will return a tuple with the exception name and the traceback.
  
      :param exception: Exception object.
      :type exception: Exception
  
      :return: A tuple with the exception name and the traceback.
      :rtype: (str, str)