Skip to content

Commit 415486e

Browse files
committed
Removed unecessary exception and replaced with a logging error.
1 parent e95092c commit 415486e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/check_release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def invoke_api(payload, url, auth, polls, begin="start/"):
116116
logging.debug(r.request.body)
117117

118118
if r.status_code != 200:
119-
raise Exception("Error while talking to the mbed API")
119+
logging.error("HTTP code %d reported.", r.status_code)
120+
return False, "Internal"
120121

121122
response = r.json()
122123
logging.debug(response)

0 commit comments

Comments
 (0)