Skip to content

Commit

Permalink
Fix raw length check condition (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanxing333 authored Dec 11, 2024
1 parent d1da130 commit 3485625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaggle_environments/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def build_agent(raw, builtin_agents, environment_name):
raw_agent = raw
if os.path.exists(raw):
raw_agent = read_file(raw, raw)
elif (len(raw) < 100 and ("/" in raw or "\\" in raw)) or raw < 20:
elif (len(raw) < 100 and ("/" in raw or "\\" in raw)) or len(raw) < 20:
raise FileNotFoundError("Could not find : " + raw)

# Attempt to execute the last callable or just return the string.
Expand Down

0 comments on commit 3485625

Please sign in to comment.