Skip to content

Commit

Permalink
fix: properly fail over if no anime in season is found
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaqo committed Aug 7, 2024
1 parent a38f27c commit 08f49b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/anipy_cli/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ def season_search_prompt(

discovered_anime = get_anime_by_season(provider, year, Season[season.upper()])

if not discovered_anime:
error(f"No anime found in {season} {year}")
return

anime = inquirer.fuzzy( # type: ignore
message="Select Show:",
choices=[
Expand Down

0 comments on commit 08f49b5

Please sign in to comment.