Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 5728da7

Browse files
committed
Use die helper function
1 parent e404b15 commit 5728da7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ubports-qa

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def get_github_pr(repo, num):
5656
def get_jenkins_build(repo, ref):
5757
ret = requests.get(JENKINS_API_BUILD % (repo, ref))
5858
if ret.status_code != 200:
59-
print("Not found")
60-
exit()
59+
die("Not found")
6160
return ret.json()
6261

6362
def get_issue_status(repo, ref):

0 commit comments

Comments
 (0)