We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a44b2f commit fe65f7bCopy full SHA for fe65f7b
src/sqlite_rag/cli.py
@@ -96,7 +96,12 @@ def main(
96
def show_settings(ctx: typer.Context):
97
"""Show current settings"""
98
rag_context = ctx.obj["rag_context"]
99
- rag = rag_context.get_rag(require_existing=True)
+ try:
100
+ rag = rag_context.get_rag(require_existing=True)
101
+ except FileNotFoundError:
102
+ typer.echo("Database not found. No settings available.")
103
+ raise typer.Exit(1)
104
+
105
current_settings = rag.get_settings()
106
107
typer.echo("Current settings:")
0 commit comments