diff options
| author | Conley Owens <cco3@android.com> | 2015-03-11 17:25:45 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-11 17:25:45 +0000 |
| commit | 20860042617d43ed192d60659cd92c71ea251519 (patch) | |
| tree | 9f4e6c6b91e37bd1b254c7383b2796ffd709733b | |
| parent | 0402cd882a05b22ddb4d3e10bf816f5165e1e11e (diff) | |
| parent | 2338788050bfacb64ebb23381b9874a9a7fde60c (diff) | |
| download | git-repo-20860042617d43ed192d60659cd92c71ea251519.tar.gz | |
Merge "Don't exit with error on HTTP 401 when downloading clone bundle"
| -rwxr-xr-x | repo | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -462,7 +462,7 @@ def _DownloadBundle(url, local, quiet): | |||
| 462 | try: | 462 | try: |
| 463 | r = urllib.request.urlopen(url) | 463 | r = urllib.request.urlopen(url) |
| 464 | except urllib.error.HTTPError as e: | 464 | except urllib.error.HTTPError as e: |
| 465 | if e.code in [403, 404]: | 465 | if e.code in [401, 403, 404]: |
| 466 | return False | 466 | return False |
| 467 | _print('fatal: Cannot get %s' % url, file=sys.stderr) | 467 | _print('fatal: Cannot get %s' % url, file=sys.stderr) |
| 468 | _print('fatal: HTTP error %s' % e.code, file=sys.stderr) | 468 | _print('fatal: HTTP error %s' % e.code, file=sys.stderr) |
