Commit 1daad89f by James Helferty

Fix: rescue if https url for init fails with 406

parent f9270f2f
...@@ -556,7 +556,7 @@ def _DownloadBundle(url, local, quiet): ...@@ -556,7 +556,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, 406]:
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment