Skip to content

Commit 7e179f6

Browse files
committed
pylint exceptions
1 parent 0f3b7b7 commit 7e179f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Raspberry_Pi_LLM_Sensor_Data/prompt_llm_for_summary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ollama import chat
99
from db_models import SensorReading
1010

11-
# pylint: disable=too-many-locals
11+
# pylint: disable=too-many-locals, too-many-nested-blocks
1212

1313
# Database connection configuration
1414
DATABASE_URL = "sqlite:///sensor_data.db"
@@ -159,7 +159,7 @@ def fetch_data(
159159
+ (f" (sampled every {sample_rate} minutes)" if sample_rate > 1 else "")
160160
)
161161
return results
162-
162+
# pylint:disable=broad-except
163163
except Exception as e:
164164
print(f"Error fetching data: {e}")
165165
return []

0 commit comments

Comments
 (0)