Skip to content

Commit 1daad89

Browse files
committed
Fix: rescue if https url for init fails with 406
1 parent f9270f2 commit 1daad89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def _DownloadBundle(url, local, quiet):
556556
try:
557557
r = urllib.request.urlopen(url)
558558
except urllib.error.HTTPError as e:
559-
if e.code in [401, 403, 404]:
559+
if e.code in [401, 403, 404, 406]:
560560
return False
561561
_print('fatal: Cannot get %s' % url, file=sys.stderr)
562562
_print('fatal: HTTP error %s' % e.code, file=sys.stderr)

0 commit comments

Comments
 (0)