Exit when feed already exists

This commit is contained in:
Joakim Hellsén 2021-12-13 17:30:43 +01:00
commit ef42aa5d38
No known key found for this signature in database
GPG key ID: 01FD861E3DAC09AC

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