Skip to content

Commit

Permalink
[FIX] Raise an exception with Response details in release.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Jun 28, 2019
1 parent c5e5b00 commit 6ab14fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def create_github_release():
)
# confirmed that release available on GitHub
result = resp.status_code == 200
else:
raise Exception((resp, resp.headers, resp.json()))
return result


Expand Down Expand Up @@ -132,6 +134,8 @@ def upload_executable_linux():

if resp.status_code in (201, 422):
result = True
else:
raise Exception((resp, resp.headers, resp.json()))
return result


Expand Down

0 comments on commit 6ab14fd

Please sign in to comment.