Don't attempt to convert None to dict
This commit is contained in:
parent
70531224e6
commit
73792fd6ce
@ -38,7 +38,7 @@ async def api_start_backtest(bt_settings: BacktestRequest, background_tasks: Bac
|
|||||||
|
|
||||||
btconfig = deepcopy(config)
|
btconfig = deepcopy(config)
|
||||||
settings = dict(bt_settings)
|
settings = dict(bt_settings)
|
||||||
if 'freqai' in settings:
|
if settings.get('freqai', None) is not None:
|
||||||
settings['freqai'] = dict(settings['freqai'])
|
settings['freqai'] = dict(settings['freqai'])
|
||||||
# Pydantic models will contain all keys, but non-provided ones are None
|
# Pydantic models will contain all keys, but non-provided ones are None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user