Skip to content

Commit 985cb26

Browse files
committed
fix mypy
1 parent 9602c6c commit 985cb26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/components/engines/python/agent/tools/interpreter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ def interpret(
202202
retry_count=retry_count + 1,
203203
)
204204
return output
205+
else:
206+
raise ValueError("Interpreter is not initialized.")
205207

206208

207209
def get_tools(**kwargs):

0 commit comments

Comments
 (0)