diff -r 9b3be572ff0c -r 2bf689b13a17 mercurial/statichttprepo.py --- a/mercurial/statichttprepo.py Sat Jan 26 10:40:37 2019 -0800 +++ b/mercurial/statichttprepo.py Sat Jan 26 10:53:10 2019 -0800 @@ -59,7 +59,7 @@ num = inst.code == 404 and errno.ENOENT or None raise IOError(num, inst) except urlerr.urlerror as inst: - raise IOError(None, inst.reason[1]) + raise IOError(None, inst.reason) if code == 200: # HTTPRangeHandler does nothing if remote does not support