Exit when feed already exists
This commit is contained in:
@ -28,6 +28,7 @@ def add(
|
|||||||
except FeedExistsError:
|
except FeedExistsError:
|
||||||
# If the feed already exists, print a message
|
# If the feed already exists, print a message
|
||||||
typer.echo(f"{feed_url} already exists")
|
typer.echo(f"{feed_url} already exists")
|
||||||
|
raise typer.Exit()
|
||||||
|
|
||||||
# Update the feeds
|
# Update the feeds
|
||||||
reader.update_feeds()
|
reader.update_feeds()
|
||||||
|
Reference in New Issue
Block a user