Tomboy data provider dies if Tomboy isn't installed

Bug #391860 reported by Kevin Godby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Fix Released
Medium
Markus Korn

Bug Description

I don't have Tomboy installed on one of my computers. When I run zeitgeist-daemon, the Tomboy data provider crashes. It should probably check to see that the Tomboy directory exists before it tries to read files from it (if not os.path.exists(self.PATH): exit cleanly).

DEBUG:zeitgeist.logger.database.tomboy:watching '/home/kevin/.tomboy' for tomboy notes
Traceback (most recent call last):
  File "/home/kevin/bzr/zeitgeist/zeitgeist/../zeitgeist-datahub", line 126, in <module>
    datahub = DataHub()
  File "/home/kevin/bzr/zeitgeist/zeitgeist/../zeitgeist-datahub", line 40, in __init__
    self._load_datasource_file(os.path.basename(datasource_file))
  File "/home/kevin/bzr/zeitgeist/zeitgeist/../zeitgeist-datahub", line 63, in _load_datasource_file
    datasource_object = __import__(datasource_file[:-3])
  File "/home/kevin/bzr/zeitgeist/zeitgeist/loggers/datasources/tomboy.py", line 199, in <module>
    __datasource__ = TomboySource()
  File "/home/kevin/bzr/zeitgeist/zeitgeist/loggers/datasources/tomboy.py", line 157, in __init__
    self.__notes_queue = list(self.notes.load_all())
  File "/home/kevin/bzr/zeitgeist/zeitgeist/loggers/datasources/tomboy.py", line 109, in load_all
    for filename in os.listdir(self.PATH):
OSError: [Errno 2] No such file or directory: '/home/kevin/.tomboy'

Markus Korn (thekorn)
Changed in zeitgeist:
assignee: nobody → Markus Korn (thekorn)
importance: Undecided → Medium
milestone: none → 0.1
Revision history for this message
Markus Korn (thekorn) wrote :

------------------------------------------------------------
revno: 925
committer: Markus Korn <email address hidden>
branch nick: trunk
timestamp: Thu 2009-06-25 08:46:29 +0200
message:
  * zeitgeist/loggers/datasources/tomboy.py: fixed tomboy dataprovider if
    tomboy is not installed and ~/.tomboy does not exist
------------------------------------------------------------

Changed in zeitgeist:
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.