suppress ugly tracebacks at Ctrl+C

This commit is contained in:
hroff-1902 2019-04-18 23:38:54 +03:00
parent 2bed61436b
commit 08e80bca80

View File

@ -398,6 +398,7 @@ 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.
""" """
if not result.exception():
# Fetch results from the Future object passed to us. # Fetch results from the Future object passed to us.
# Future object is assumed to be 'done' already. # Future object is assumed to be 'done' already.
f_val = result.result().copy() f_val = result.result().copy()