Show More
@@ -15,8 +15,10 b' class rangereader(httprangereader.httpra' | |||
|
15 | 15 | def read(self, size=None): |
|
16 | 16 | try: |
|
17 | 17 | return httprangereader.httprangereader.read(self, size) |
|
18 | except urllib2.HTTPError, inst: | |
|
19 | raise IOError(None, inst) | |
|
18 | 20 | except urllib2.URLError, inst: |
|
19 |
raise IOError(None, |
|
|
21 | raise IOError(None, inst.reason[1]) | |
|
20 | 22 | |
|
21 | 23 | def opener(base): |
|
22 | 24 | """return a function that opens files over http""" |
General Comments 0
You need to be logged in to leave comments.
Login now