Skip to content

Commit

Permalink
fix: Add error handling for displaying station list
Browse files Browse the repository at this point in the history
  • Loading branch information
XXXFQ committed Nov 20, 2024
1 parent 13e01c3 commit eba2152
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions radiko_recorder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ def main(argv=None):
args = parser.parse_args(argv)

if args.station_list:
# 放送局リストを表示
_show_station_list(args.area_id)
try:
# 放送局リストを表示
_show_station_list(args.area_id)
except ValueError as e:
print(e)
return

# 必須引数のチェック
Expand Down

0 comments on commit eba2152

Please sign in to comment.