exception when uploading and not online
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RescueTime Linux Uploader |
Fix Released
|
High
|
Angus Helm |
Bug Description
Thanks for your very fast reply and the fixes to the other reports!
When I'm offline and the automatic upload is triggered, I get an exception. It would be better to just print a warning and continue tracking until I'm online again.
Logging in...
Traceback (most recent call last):
File "./uploader.py", line 488, in <module>
uploader.main()
File "./uploader.py", line 361, in main
self.
File "./uploader.py", line 407, in upload_data
if not self.test_
File "./uploader.py", line 380, in test_login
ret = urllib2.
File "/usr/lib/
return _opener.open(url, data)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.do_
File "/usr/lib/
raise URLError(err)
urllib2.URLError: <urlopen error (-3, 'Temporary failure in name resolution')>
Hmm, I was checking for HTTPErrors, but not URLErrors. Release 30 checks for URLErrors everywhere that HTTPErrors were checked for.