fix: Add missing condition to check for empty data in process_symbol function
This commit is contained in:
parent
b887269152
commit
3d4c48b82f
@ -29,7 +29,7 @@ def run_canslim_screener():
|
||||
|
||||
def process_symbol(symbol, data, selected_screeners):
|
||||
"""Process individual symbol for CANSLIM screening"""
|
||||
if not
|
||||
if not data: # Add the condition to check if data is empty
|
||||
print(f"⚠️ Warning: No data returned for {symbol}. Assigning default score.\n")
|
||||
scores = {screener: 0.25 for category in selected_screeners
|
||||
for screener in selected_screeners[category]}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user