Exit when feed already exists
This commit is contained in:
parent
6458efd28b
commit
ef42aa5d38
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ def add(
|
|||
except FeedExistsError:
|
||||
# If the feed already exists, print a message
|
||||
typer.echo(f"{feed_url} already exists")
|
||||
raise typer.Exit()
|
||||
|
||||
# Update the feeds
|
||||
reader.update_feeds()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue