Merge "Ignore clone.bundle on HTTP 501, i.e. Not Implemented"

This commit is contained in:
David Pursehouse 2016-04-05 21:39:29 +00:00 committed by Gerrit Code Review
commit e121ad558d

2
repo
View File

@ -543,7 +543,7 @@ def _DownloadBundle(url, local, quiet):
try: try:
r = urllib.request.urlopen(url) r = urllib.request.urlopen(url)
except urllib.error.HTTPError as e: except urllib.error.HTTPError as e:
if e.code in [401, 403, 404]: if e.code in [401, 403, 404, 501]:
return False return False
_print('fatal: Cannot get %s' % url, file=sys.stderr) _print('fatal: Cannot get %s' % url, file=sys.stderr)
_print('fatal: HTTP error %s' % e.code, file=sys.stderr) _print('fatal: HTTP error %s' % e.code, file=sys.stderr)