From 49daaae36a0d9718a13397532959b1493e43dc62 Mon Sep 17 00:00:00 2001 From: Marko Djordjevic Date: Wed, 18 Feb 2026 20:58:47 +0100 Subject: [PATCH] code-review-fix task 15.4: add missing fallback return for volume indicators in talib_features.py --- services/ml/features/talib_features.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/ml/features/talib_features.py b/services/ml/features/talib_features.py index be77017..37949a4 100644 --- a/services/ml/features/talib_features.py +++ b/services/ml/features/talib_features.py @@ -187,6 +187,8 @@ def _call_talib_function( return func(high_prices, low_prices, close_prices, volume, **params) elif name == 'MFI': return func(high_prices, low_prices, close_prices, volume, **params) + # Fallback return for volume indicators if no matching case + return np.array([]) elif name in hl_indicators: return func(high_prices, low_prices, **params) else: