handle python 2.4 timeout exceptions
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1010 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -3886,7 +3886,13 @@ class urlFetcher:
|
||||
|
||||
rsx = "x"
|
||||
while rsx != '':
|
||||
rsx = self.remotefile.read(self.bufferSize)
|
||||
try:
|
||||
rsx = self.remotefile.read(self.bufferSize)
|
||||
except:
|
||||
# python 2.4 timeouts go here
|
||||
self.close()
|
||||
self.status = "-3"
|
||||
return self.status
|
||||
self.commitData(rsx)
|
||||
if self.showSpeed:
|
||||
self.updateProgress()
|
||||
|
||||
Reference in New Issue
Block a user