Skip to content

Fix: Crash when config file missing#72

Open
onchito-walks wants to merge 1 commit into
ApexOpsStudio:mainfrom
onchito-walks:fix-config-crash-clean
Open

Fix: Crash when config file missing#72
onchito-walks wants to merge 1 commit into
ApexOpsStudio:mainfrom
onchito-walks:fix-config-crash-clean

Conversation

@onchito-walks
Copy link
Copy Markdown

Bug Fix

Fixed the crash that occurred when was missing.

Changes

  • Added function that creates default config if missing
  • Wrapped config loading in try/except for graceful error handling
  • Shows helpful message instead of FileNotFoundError crash

Test Results

Payment

BTC:

- Creates default config.yaml when missing
- Wraps load_config() in try/except for graceful error handling
- Shows helpful message instead of FileNotFoundError crash
- Added 4 tests for config handling scenarios

Bounty: ApexOpsStudio#2
Payment: 1Ast5dKr9z1bLWFBnyh6WDQSgyL7EHJosp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant