suppress ugly tracebacks at Ctrl+C
This commit is contained in:
parent
2bed61436b
commit
08e80bca80
@ -398,10 +398,11 @@ class CustomImmediateResultBackend(LokyBackend):
|
|||||||
Use it to run Optimizer.tell() with immediate results of the backtest()
|
Use it to run Optimizer.tell() with immediate results of the backtest()
|
||||||
evaluated in the joblib worker process.
|
evaluated in the joblib worker process.
|
||||||
"""
|
"""
|
||||||
# Fetch results from the Future object passed to us.
|
if not result.exception():
|
||||||
# Future object is assumed to be 'done' already.
|
# Fetch results from the Future object passed to us.
|
||||||
f_val = result.result().copy()
|
# Future object is assumed to be 'done' already.
|
||||||
_hyperopt.parallel_callback(f_val)
|
f_val = result.result().copy()
|
||||||
|
_hyperopt.parallel_callback(f_val)
|
||||||
|
|
||||||
def apply_async(self, func, callback=None):
|
def apply_async(self, func, callback=None):
|
||||||
cbs = MultiCallback(callback, self.callback)
|
cbs = MultiCallback(callback, self.callback)
|
||||||
|
Loading…
Reference in New Issue
Block a user