Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-10-12 10:46:09 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-10-12 10:46:09 (GMT)
commitaa58099f2f9e74b35353b5cbaaafee86ca09f15f (patch)
treef9cbf6e795d5d93ce28e4c7e33f5847444453723
parent64340f33cf322ebcfdbf6349c14b2bd296a6c9d0 (diff)
Fix logging errors if removed is an empty tuple
-rw-r--r--activity.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/activity.py b/activity.py
index 107102d..12f28e1 100644
--- a/activity.py
+++ b/activity.py
@@ -199,8 +199,10 @@ class HelloTube(ExportedGObject):
self.tube.watch_participants(self.participant_change_cb)
def participant_change_cb(self, added, removed):
- self._logger.debug('Adding participants: %r' % added)
- self._logger.debug('Removing participants: %r' % removed)
+ if added:
+ self._logger.debug('Adding participants: %r' % added)
+ if removed:
+ self._logger.debug('Removing participants: %r' % removed)
for handle, bus_name in added:
buddy = self._get_buddy(handle)
if buddy is not None: