Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 5863a2a

Browse files
authored
Exit during release if package not registered (#58)
1 parent 26946db commit 5863a2a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

autotag/release.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def check_unreleased(version, package):
2626
info = requests.get(url)
2727
if not info.ok:
2828
print 'Package not registered on PyPI'
29+
exit(1)
2930
return version not in info.json()['releases'].keys()
3031

3132

tagsearch/release.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def check_unreleased(version, package):
2525
info = requests.get(url)
2626
if not info.ok:
2727
print 'Package not registered on PyPI'
28+
exit(1)
2829
return version not in info.json()['releases'].keys()
2930

3031

0 commit comments

Comments
 (0)