diff options
-rwxr-xr-x | repo | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -117,7 +117,7 @@ def check_python_version(): | |||
117 | 117 | ||
118 | # If the python3 version looks like it's new enough, give it a try. | 118 | # If the python3 version looks like it's new enough, give it a try. |
119 | if (python3_ver and python3_ver >= MIN_PYTHON_VERSION_HARD | 119 | if (python3_ver and python3_ver >= MIN_PYTHON_VERSION_HARD |
120 | and python3_ver != (major, minor)): | 120 | and python3_ver != (major, minor)): |
121 | reexec('python3') | 121 | reexec('python3') |
122 | 122 | ||
123 | # We're still here, so diagnose things for the user. | 123 | # We're still here, so diagnose things for the user. |
@@ -859,11 +859,10 @@ def _DownloadBundle(url, cwd, quiet, verbose): | |||
859 | try: | 859 | try: |
860 | r = urllib.request.urlopen(url) | 860 | r = urllib.request.urlopen(url) |
861 | except urllib.error.HTTPError as e: | 861 | except urllib.error.HTTPError as e: |
862 | if e.code in [401, 403, 404, 501]: | 862 | if e.code not in [400, 401, 403, 404, 501]: |
863 | return False | 863 | print('warning: Cannot get %s' % url, file=sys.stderr) |
864 | print('fatal: Cannot get %s' % url, file=sys.stderr) | 864 | print('warning: HTTP error %s' % e.code, file=sys.stderr) |
865 | print('fatal: HTTP error %s' % e.code, file=sys.stderr) | 865 | return False |
866 | raise CloneFailure() | ||
867 | except urllib.error.URLError as e: | 866 | except urllib.error.URLError as e: |
868 | print('fatal: Cannot get %s' % url, file=sys.stderr) | 867 | print('fatal: Cannot get %s' % url, file=sys.stderr) |
869 | print('fatal: error %s' % e.reason, file=sys.stderr) | 868 | print('fatal: error %s' % e.reason, file=sys.stderr) |