Skip to content

Commit

Permalink
Exit silently for missing Project.toml errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-dG committed Feb 9, 2020
1 parent 59c5899 commit 43c9bdb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tagbot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@
ssh=bool(ssh),
gpg=bool(gpg),
)
versions = repo.new_versions()

try:
versions = repo.new_versions()
except Abort as e:
# Special case for repositories that don't have a Project.toml:
# Exit "silently" to avoid sending unwanted emails.
# TODO: Maybe mass-PR against these repos to remove TagBot.
if "Project file was not found" not in e.args:
raise
info("Project file was not found.")
info("If this repository is not going to be registered, you should remove TagBot.")
sys.exit(0)

if not versions:
info("No new versions to release")
Expand Down

0 comments on commit 43c9bdb

Please sign in to comment.