-
Notifications
You must be signed in to change notification settings - Fork 44.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(agent): Fix check when loading an existing agent #7026
fix(agent): Fix check when loading an existing agent #7026
Conversation
✅ Deploy Preview for auto-gpt-docs canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7026 +/- ##
=======================================
Coverage 45.51% 45.51%
=======================================
Files 139 139
Lines 6530 6530
Branches 917 917
=======================================
Hits 2972 2972
Misses 3408 3408
Partials 150 150
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
if re.match(r"^\d+$", load_existing_agent.strip()) and 0 < int( | ||
load_existing_agent | ||
) <= len(existing_agents): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I didn't know Python could do x < y < z
comparisons :)
OPEN-185
Now the check also ensures the chosen agent number is within proper range.