From 38e85f3987ed945a46e594cbaae959447b7e16d6 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 27 Sep 2006 11:35:15 -0400 Subject: [PATCH] Ignore duplicate activity additions --- services/presence/Buddy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/presence/Buddy.py b/services/presence/Buddy.py index 7232eeab..0b88e2bd 100644 --- a/services/presence/Buddy.py +++ b/services/presence/Buddy.py @@ -282,7 +282,7 @@ class Buddy(object): def add_activity(self, activity): if activity in self._activities.values(): - raise RuntimeError("Tried to add activity twice") + return actid = activity.get_id() if not self.__find_service_by_activity_id(actid): raise RuntimeError("Tried to add activity for which we had no service")