changeset 618:e2c33a16d235

plugin groupblog: fixed bad inialisation check
author Goffi <goffi@goffi.org>
date Mon, 17 Jun 2013 13:30:57 +0200 (2013-06-17)
parents dafdbe28ca2f
children 1de01a2154e2
files src/plugins/plugin_misc_groupblog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_misc_groupblog.py	Mon Jun 17 13:17:43 2013 +0200
+++ b/src/plugins/plugin_misc_groupblog.py	Mon Jun 17 13:30:57 2013 +0200
@@ -144,7 +144,7 @@
                     client.item_access_pubsub = entity
             client._item_access_pubsub_pending.callback(None)
 
-        if "_item_access_pubsub_pending" in client:
+        if hasattr(client, "_item_access_pubsub_pending"):
             #XXX: we need to wait for item access pubsub service check
             yield client._item_access_pubsub_pending
             del client._item_access_pubsub_pending