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:
(no author)
2008-01-06 11:27:44 +00:00
parent fb18d9cea7
commit f71a40e645

View File

@@ -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()