From 97adf7b32c9ac8c2565a43507f0b4e34bed028ae Mon Sep 17 00:00:00 2001 From: Marc Maurer Date: Sun, 14 Sep 2008 10:59:19 +0000 Subject: Fix bug 6021: Write crash on buddy left (Morgan Collett) --- diff --git a/AbiWordActivity.py b/AbiWordActivity.py index 7ee3bb0..cd922d0 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -283,8 +283,9 @@ class AbiWordActivity (Activity): def _on_members_changed(self, message, added, removed, local_pending, remote_pending, actor, reason): logger.debug("_on_members_changed") for handle in removed: - logger.debug('removed handle: %d, with dbus name: %s', handle, self.participants[handle]) bus_name = self.participants.pop(handle, None) + logger.debug('removed handle: %d, with dbus name: %s', handle, + bus_name) self.abiword_canvas.invoke_cmd('com.abisource.abiword.abicollab.olpc.buddyLeft', bus_name, 0, 0) def _buddy_joined_cb (self, activity, buddy): -- cgit v0.9.1