Skip to content

Commit cc8d846

Browse files
committed
Fixed condition check for execution_status
1 parent fb88266 commit cc8d846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def update_db(
135135
if result is not None:
136136
total_embedding_cost, total_llm_cost, total_embedding_tokens, total_llm_tokens = calculate_cost_and_tokens(result)
137137

138-
if execution_status is "ERROR":
138+
if execution_status == "ERROR":
139139
error_message = extract_error_message(result)
140140

141141
conn = sqlite3.connect(DB_NAME)

0 commit comments

Comments
 (0)