request may get overwritten, use self.request

This commit is contained in:
Matt Martz 2016-05-16 16:34:13 -05:00
parent 07c38d7194
commit 2a4990c96c
1 changed files with 2 additions and 2 deletions

View File

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