Skip to content

Commit

Permalink
handling the case where there are no tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yaleman committed Jul 19, 2024
1 parent 861a475 commit 858a050
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contentctl/actions/new_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def buildDetection(self)->dict[str,Any]:

def buildStory(self)->dict[str,Any]:
questions = NewContentQuestions.get_questions_story()
answers = questionary.prompt(questions)
answers = questionary.prompt(questions, kbi_msg="User did not answer all of the prompt questions. Exiting...")
if not answers:
raise ValueError("User didn't answer one or more questions!")
answers['name'] = answers['story_name']
del answers['story_name']
answers['id'] = str(uuid.uuid4())
Expand Down

0 comments on commit 858a050

Please sign in to comment.