mercurial/statichttprepo.py
changeset 41406 2bf689b13a17
parent 41038 3913223417ea
child 41407 6e9bebb65ce7
--- 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