Skip to content

Conversation

@ncoop57
Copy link
Contributor

@ncoop57 ncoop57 commented Feb 1, 2025

Description

This PR fixes the issue where users would get an error when updating shell_sage to a new version that introduced new config options. Now it gracefully falls back to default values when options are missing from the user's config.

Changes

  • Added default_cfg dictionary from ShellSageConfig
  • Modified get_opts to use .get() with default values
  • Prevents IndexError when config options are missing

Fixes #22

@gitnotebooks
Copy link

gitnotebooks bot commented Feb 1, 2025

Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/AnswerDotAI/shell_sage/pull/30

@ncoop57 ncoop57 merged commit fbc888e into main Feb 1, 2025
@ncoop57 ncoop57 deleted the version branch February 1, 2025 15:05
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.

base_url error when user updates shell sage to new version with different config schema

2 participants