s3transfer/futures.py
def set_exception(self, exception, override=False):
        """Set an exception for the TransferFuture

        Implies the TransferFuture failed.

        :param exception: The exception that cause the transfer to fail.
        :param override: If True, override any existing state.
        """
        with self._lock:
            if not self.done() or override:
                self._exception = exception
                self._status = 'failed'
def set_exception(self, exception, override=False):
        with self._lock:
            if not self.done() or override:
                self._exception = exception
                self._status = 'failed'
def set_exception ( self , exception , override = False ) : with self . _lock : if not self . done ( ) or override : self . _exception = exception self . _status = 'failed'
Set an exception for the TransferFuture

        Implies the TransferFuture failed.

        :param exception: The exception that cause the transfer to fail.
        :param override: If True, override any existing state.
Set an exception for the TransferFuture