Skip to content

Commit

Permalink
Fix default value handling in get_input for error webhook URL prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Najmul190 committed Feb 24, 2025
1 parent ea97850 commit f77c29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def validate_api_key(api_key, provider="openai"):

def get_input(prompt, validator=None, default=None, password=False):
while True:
if default is not None:
if default is not None and prompt == "Enter error webhook URL (optional - press enter to skip)":
user_input = input(f"{prompt} (default: {default}): ").strip()
if not user_input:
return default
Expand Down

0 comments on commit f77c29e

Please sign in to comment.