code: def get_error(self):
          
          exc_info = sys.exc_info()
          if exc_info[0] is None:
              return None
          else:
              err_type, err_value, err_trace = exc_info[0], exc_info[1], None
              if self.verbose and len(exc_info) > 2:
                  err_trace = exc_info[2]
              return format_error(err_type, err_value, err_trace)
docs: Properly formats the current error.