def set_exception(self, exception):
        handled = False

        self.timer.stop()
        if self.future is not None:
            self.future.set_exception(exception)

        if self.deferred is not None:
            unhandled = []
            self.deferred.addErrback(self._unhandledErrback, unhandled)
            self.deferred.errback(exception)
            if not unhandled:
                handled = True

        return handled
make sure options are applied correctly for a Flot subclass
dataset/ETHPy150Open facebook/sparts/sparts/vtask.py/ExecuteContext.set_exception--crossover with--dataset/ETHPy150Open unbracketed/python-flot-utils/pyflot/tests/__init__.py/TestFlot.test_options