From a35f9580688a3c0def7677dd9080f0c2f5d71eea Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 25 Sep 2008 11:35:06 +0000 Subject: _on_members_changed: ignore bus_name if it's None --- diff --git a/AbiWordActivity.py b/AbiWordActivity.py index cd922d0..a9384e8 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -284,6 +284,9 @@ class AbiWordActivity (Activity): logger.debug("_on_members_changed") for handle in removed: bus_name = self.participants.pop(handle, None) + if bus_name is None: + continue + 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) -- cgit v0.9.1