Merge pull request #18283 from lidizheng/fix-18282

Silent the check_on_pr failure
This commit is contained in:
Lidi Zheng 2019-03-07 15:07:46 -08:00 committed by GitHub
commit 69616b1a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -29,8 +29,8 @@ _GITHUB_APP_ID = 22338
_INSTALLATION_ID = 519109
_ACCESS_TOKEN_CACHE = None
_ACCESS_TOKEN_FETCH_RETRIES = 5
_ACCESS_TOKEN_FETCH_RETRIES_INTERVAL_S = 1
_ACCESS_TOKEN_FETCH_RETRIES = 6
_ACCESS_TOKEN_FETCH_RETRIES_INTERVAL_S = 15
def _jwt_token():
@ -76,7 +76,7 @@ def _access_token():
time.sleep(_ACCESS_TOKEN_FETCH_RETRIES_INTERVAL_S)
else:
print("error: Unable to fetch access token, exiting...")
sys.exit(1)
sys.exit(0)
return _ACCESS_TOKEN_CACHE['token']