Skip to content

Handle error for missing API key better#52

Merged
tjazerzen merged 2 commits intomainfrom
fix/error-handling-for-missing-api-key
Jan 26, 2026
Merged

Handle error for missing API key better#52
tjazerzen merged 2 commits intomainfrom
fix/error-handling-for-missing-api-key

Conversation

@tjazerzen
Copy link
Contributor

@tjazerzen tjazerzen commented Jan 26, 2026

Before

image

Problems:

  • If no API keys were provided, ValueError was raised at runtime. Because error wasn't raised in method render, we were not able to back it up with the error handling system we have
  • Reading os.getenv("CLAUDE_API_KEY") is history and we don't need it anymore

After

image

@tjazerzen tjazerzen requested a review from zanjonke January 26, 2026 13:06
Copy link
Contributor

@zanjonke zanjonke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment. Other than that, looks good to me.

Improve error message for missing API key (kit)

Co-authored-by: Žan Jonke <zan@codeplain.ai>
@tjazerzen
Copy link
Contributor Author

@zanjonke approved it 😎

@tjazerzen tjazerzen merged commit eccacfa into main Jan 26, 2026
10 checks passed
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.

2 participants