Browse Source

Merge "Don't exit with error on HTTP 403 when downloading clone bundle"

David Pursehouse 13 years ago
parent
commit
91f011ab0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      repo

+ 1 - 1
repo

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