code: def exception_set(self, exception=None):
          
          if not exception:
              exception = sys.exc_info()
          self.exception = exception
          self.exception_raise = self._exception_raise
docs: Records an exception to be raised at the appropriate time.
  
          This also changes the "exception_raise" attribute to point
          to the method that will, in fact