exception when uploading and not online

Bug #188586 reported by Daniel Naber
2
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.upload_data()
  File "./uploader.py", line 407, in upload_data
    if not self.test_login(email_address, password):
  File "./uploader.py", line 380, in test_login
    ret = urllib2.urlopen(login_url, login_data)
  File "/usr/lib/python2.5/urllib2.py", line 121, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 374, in open
    response = self._open(req, data)
  File "/usr/lib/python2.5/urllib2.py", line 392, in _open
    '_open', req)
  File "/usr/lib/python2.5/urllib2.py", line 353, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 1100, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.5/urllib2.py", line 1075, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error (-3, 'Temporary failure in name resolution')>

Revision history for this message
Angus Helm (angus.helm) wrote :

Hmm, I was checking for HTTPErrors, but not URLErrors. Release 30 checks for URLErrors everywhere that HTTPErrors were checked for.

Changed in rescuetime-linux-uploader:
assignee: nobody → angus.helm
importance: Undecided → High
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.