mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
use model_validate instead of parse_obj
This commit is contained in:
parent
352f0fdfca
commit
185c5a779d
|
@ -289,7 +289,7 @@ def plot_config(strategy: Optional[str] = None, config=Depends(get_config),
|
|||
'strategy': strategy
|
||||
})
|
||||
try:
|
||||
return PlotConfig.parse_obj(RPC._rpc_plot_config_with_strategy(config1))
|
||||
return PlotConfig.model_validate(RPC._rpc_plot_config_with_strategy(config1))
|
||||
except Exception as e:
|
||||
raise HTTPException(status_code=502, detail=str(e))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user