request may get overwritten, use self.request
This commit is contained in:
parent
07c38d7194
commit
2a4990c96c
|
@ -480,11 +480,11 @@ class HTTPUploader(threading.Thread):
|
||||||
f = urlopen(request)
|
f = urlopen(request)
|
||||||
f.read(11)
|
f.read(11)
|
||||||
f.close()
|
f.close()
|
||||||
self.result = sum(request.data.total)
|
self.result = sum(self.request.data.total)
|
||||||
else:
|
else:
|
||||||
self.result = 0
|
self.result = 0
|
||||||
except (IOError, SpeedtestUploadTimeout):
|
except (IOError, SpeedtestUploadTimeout):
|
||||||
self.result = sum(request.data.total)
|
self.result = sum(self.request.data.total)
|
||||||
|
|
||||||
|
|
||||||
class UnitsDataDescriptor(object):
|
class UnitsDataDescriptor(object):
|
||||||
|
|
Loading…
Reference in New Issue