diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-02-04 10:58:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-02-04 10:58:48 +0000 |
commit | 91f011ab0df9e1aa215e39b424c9ce2614bae50e (patch) | |
tree | 15c9c9b087d8502f4b560fd3afff0a74300137fb | |
parent | 57bd7b717ba830753b5c6d82bb84d38047dce637 (diff) | |
parent | 87b9d9b4f2b9540fdd23a2b13af622d04a15269a (diff) | |
download | git-repo-91f011ab0df9e1aa215e39b424c9ce2614bae50e.tar.gz |
Merge "Don't exit with error on HTTP 403 when downloading clone bundle"v1.12.1
-rwxr-xr-x | repo | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -428,7 +428,7 @@ def _DownloadBundle(url, local, quiet): | |||
428 | try: | 428 | try: |
429 | r = urllib.request.urlopen(url) | 429 | r = urllib.request.urlopen(url) |
430 | except urllib.error.HTTPError as e: | 430 | except urllib.error.HTTPError as e: |
431 | if e.code == 404: | 431 | if e.code in [403, 404]: |
432 | return False | 432 | return False |
433 | print('fatal: Cannot get %s' % url, file=sys.stderr) | 433 | print('fatal: Cannot get %s' % url, file=sys.stderr) |
434 | print('fatal: HTTP error %s' % e.code, file=sys.stderr) | 434 | print('fatal: HTTP error %s' % e.code, file=sys.stderr) |