|
|
@ -72,7 +72,8 @@ class URLFile(object): |
|
|
|
if response_code == 416: # Requested Range Not Satisfiable |
|
|
|
if response_code == 416: # Requested Range Not Satisfiable |
|
|
|
return "" |
|
|
|
return "" |
|
|
|
if response_code != 206 and response_code != 200: |
|
|
|
if response_code != 206 and response_code != 200: |
|
|
|
raise Exception("Error {}: {}".format(response_code, repr(dats.getvalue())[:500])) |
|
|
|
raise Exception("Error {} ({}): {}".format(response_code, self._url, repr(dats.getvalue())[:500])) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ret = dats.getvalue() |
|
|
|
ret = dats.getvalue() |
|
|
|
self._pos += len(ret) |
|
|
|
self._pos += len(ret) |
|
|
|