~h-pawan/gtg/rtm_json_parsing_exception

« back to all changes in this revision

Viewing changes to GTG/backends/backend_rtm.py

  • Committer: Pawan Hegde
  • Date: 2014-03-01 09:07:22 UTC
  • Revision ID: h.pawan@gmail.com-20140301090722-4ddprnbw26rso6pb
Allows the RTM backend to be added as a synchronisation backend. backend_rtm.py was broken by the move to Python 3. The exceptions module was removed in favor of more built-in exceptions in Python. The file however, was not updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import threading
29
29
import datetime
30
30
import subprocess
31
 
import exceptions
32
31
from dateutil.tz import tzutc, tzlocal
33
32
 
34
33
from GTG.backends.genericbackend import GenericBackend
577
576
            try:
578
577
                if self._login():
579
578
                    self.authenticated.set()
580
 
            except exceptions.IOError:
 
579
            except IOError:
581
580
                BackendSignals().backend_failed(self.get_id(),
582
581
                                                BackendSignals.ERRNO_NETWORK)
583
582