File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,11 @@ def wrapper(*args, **kargs):
313
313
314
314
def async_result (f_result , last ):
315
315
if f_result is not None and f_result .done ():
316
- return None , f_result .result ()
316
+ try :
317
+ return None , f_result .result ()
318
+ except Exception as e :
319
+ self .logger .warning (type (e ).__name__ + ": {0}" .format (e ))
320
+ f_result = None
317
321
return f_result , last
318
322
319
323
self .hft = self .settings .interval < 3
@@ -400,9 +404,11 @@ def async_result(f_result, last):
400
404
# 価格データ取得
401
405
ticker = dotdict (self .ep .get_ticker ())
402
406
ohlcv = executions = None
407
+
403
408
# インターバルが0の場合、約定履歴の到着を待つ
404
409
if self .settings .interval == 0 :
405
410
self .ep .wait_any (['executions' ], timeout = 0.5 )
411
+
406
412
# OHLCVを作成しない場合、約定履歴を渡す
407
413
if self .settings .disable_create_ohlcv :
408
414
executions = self .ep .get_executions ()
You can’t perform that action at this time.
0 commit comments