From 3cc85a175656940f9f523d4d7d0ee79a4decdfe0 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 --- (limited to 'AbiWordActivity.py') 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