Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit e657753

Browse files
author
Philippe Cote-Boucher
committed
chore: safety
1 parent fcb180b commit e657753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rasa/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ async def evaluate_intents(request: Request):
929929
nlu_data = rasa.utils.io.create_temporary_file(request.body, mode="w+b")
930930
data_path = os.path.abspath(nlu_data)
931931

932-
if not os.path.exists(eval_agent.model_directory):
932+
if not eval_agent.model_directory or not os.path.exists(eval_agent.model_directory):
933933
raise ErrorResponse(409, "Conflict", "Loaded model file not found.")
934934

935935
model_directory = eval_agent.model_directory

0 commit comments

Comments
 (0)