Handle "no data" case in ranger calcs and avoid crashes

async_hist_loading
Tyler Goodlet 2022-02-28 07:40:02 -05:00
parent 3e7d4f8717
commit 6f3d78b729
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ def chart_maxmin(
if not in_view.size:
log.warning('Resetting chart to data')
chart.default_view()
return (last_bars_range, 0, 0, 0)
mx, mn = np.nanmax(in_view['high']), np.nanmin(in_view['low'])