Read about our upcoming Code of Conduct on this issue

Commit 0af94ce2 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

fetch-watch-tags: fixed exit code if main() returns None

There was a forgotten case, but it's actually better this way.
parent 543ccb76e373
......@@ -102,7 +102,7 @@
print("Releases to consider in new tags: %r" % new_versions)
print("No release found in new tags")
return 0
series = cl_args.version_series
if series:
......@@ -112,7 +112,7 @@
new_versions = filter_new_versions(new_versions, series=series)
if not new_versions:
print("No new releases to consider")
return 0
if cl_args.create_issue:
for version in new_versions:
......@@ -152,4 +152,5 @@
if __name__ == '__main__':
res = main()
sys.exit(0 if res is None else res)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment