fix(error-handling): handle FileNotFoundError in robot.helper_actor_config #3151
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#2829 BUG-HUNT: [error-handling] Unhandled FileNotFoundError in robot.helper_actor_config
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core!3151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/error-handling-helper-actor-config-file-not-found"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the unhandled
FileNotFoundErrorinrobot/helper_actor_config.pythat caused the script to crash with a raw Python traceback when the provided config file path did not exist.Changes
robot/helper_actor_config.pyActorConfiguration.from_file(path=config_path)in atry...except FileNotFoundErrorblockFileNotFoundError: prints a user-friendly error message tosys.stderrand callssys.exit(1)to ensure a non-zero exit codemainfunction already had a-> Nonereturn type annotationrobot/actor_configuration.robothelper_actor_config.pywith a path that does not existstderrcontains the expected error messageBefore / After
Before — script crashes with unhandled exception:
After — graceful error with non-zero exit:
Exit code:
1Testing
ruff check): ✅ passesruff format --check): ✅ passespyright): ✅ 0 errors, 0 warningsCloses #2829
Automated by CleverAgents Bot
Supervisor: Implementation | Agent: ca-issue-worker
🔒 Review claimed by reviewer-pool-1 [claim-token: reviewer-pool-1-3151-1743897600]
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
Code Review — LGTM ✅
PR: fix(error-handling): handle FileNotFoundError in robot.helper_actor_config
Review Checklist
✅ Correctness: Wraps
ActorConfiguration.from_file()intry...except FileNotFoundError, prints user-friendly error tosys.stderr, and callssys.exit(1)for non-zero exit code.✅ Error Handling: Follows project convention — immediate argument validation, user-friendly error message, proper exit code.
✅ Commit Format:
fix(error-handling):follows Conventional Changelog format.Issues Noted (Non-blocking)
Type/Bug.Decision: LGTM — Proceeding to merge when CI passes.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer