Exit when feed already exists

This commit is contained in:
2021-12-13 17:30:43 +01:00
parent 6458efd28b
commit ef42aa5d38

View File

@ -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()