Ignore duplicate activity additions

This commit is contained in:
Dan Williams 2006-09-27 11:35:15 -04:00
parent da21d28a2f
commit 38e85f3987

View File

@ -282,7 +282,7 @@ class Buddy(object):
def add_activity(self, activity): def add_activity(self, activity):
if activity in self._activities.values(): if activity in self._activities.values():
raise RuntimeError("Tried to add activity twice") return
actid = activity.get_id() actid = activity.get_id()
if not self.__find_service_by_activity_id(actid): if not self.__find_service_by_activity_id(actid):
raise RuntimeError("Tried to add activity for which we had no service") raise RuntimeError("Tried to add activity for which we had no service")