← Back to team overview

zeitgeist team mailing list archive

[Bug 570741] Re: Bug in find_related_uris

 

Seif: Was this revision
http://bazaar.launchpad.net/~zeitgeist/zeitgeist/trunk/revision/1445 ?

I actually had expected the crash to be because len(event.subjects) == 0
in  event.subjects[0].uri? It does not seem to be what you fixed in that
rev :-)

-- 
Bug in find_related_uris
https://bugs.launchpad.net/bugs/570741
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Released

Bug description:
While playing with libzg, I got this exception:

** (process:10701): CRITICAL **: file /home/miso/test-zg.vala.c: line 166: uncaught error: Remote Exception invoking org.gnome.zeitgeist.Log.FindRelatedUris() on /org/gnome/zeitgeist/log/activity at name org.gnome.zeitgeist.Engine: org.freedesktop.DBus.Python.IndexError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/zeitgeist/_zeitgeist/engine/remote.py", line 135, in FindRelatedUris
    result_event_templates, storage_state, num_events, result_type)
  File "/usr/share/zeitgeist/_zeitgeist/engine/main.py", line 303, in find_related_uris
    landmarks = set([unicode(event.subjects[0].uri) for event in event_templates])
IndexError: list index out of range





References