fix: Remove nested try block and fix indentation in SQL query

This commit is contained in:
Bobby (aider) 2025-02-08 20:55:11 -08:00
parent 819c91ff4a
commit 1b852b2d8d

View File

@ -238,7 +238,6 @@ def run_sunny_scanner(min_price: float, max_price: float, min_volume: int, portf
ORDER BY ticker ORDER BY ticker
""" """
try:
result = client.query(query) result = client.query(query)
qualified_stocks = [(row[0], row[1], row[2], row[3]) for row in result.result_rows] qualified_stocks = [(row[0], row[1], row[2], row[3]) for row in result.result_rows]