overall better handling and usage of exceptions
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-04-02 18:57:13 +02:00
parent 5d5930265a
commit f8bbe00d47
Signed by: kunsi
GPG key ID: 12E3D2136B818350
21 changed files with 57 additions and 28 deletions

View file

@ -3,7 +3,9 @@
from requests import get
from sys import argv, exit
assert len(argv) == 3, 'Usage: check_github_for_new_release <repo> <version>'
if not len(argv) == 3:
print('Usage: check_github_for_new_release <repo> <version>')
exit(3)
repo = argv[1]
current_version = argv[2]