##// END OF EJS Templates
statichttprepo: use URLError.reason directly...
Gregory Szorc -
r41451:2bf689b1 default
parent child Browse files
Show More
@@ -59,7 +59,7 b' class httprangereader(object):'
59 num = inst.code == 404 and errno.ENOENT or None
59 num = inst.code == 404 and errno.ENOENT or None
60 raise IOError(num, inst)
60 raise IOError(num, inst)
61 except urlerr.urlerror as inst:
61 except urlerr.urlerror as inst:
62 raise IOError(None, inst.reason[1])
62 raise IOError(None, inst.reason)
63
63
64 if code == 200:
64 if code == 200:
65 # HTTPRangeHandler does nothing if remote does not support
65 # HTTPRangeHandler does nothing if remote does not support
General Comments 0
You need to be logged in to leave comments. Login now