# HG changeset patch # User Goffi # Date 1302347851 -7200 # Node ID f1a3db8ee04a534a1f68db82a4cfe85cc7f9a2f9 # Parent ce3607b7198d2d30fe605bdf873e289d9110e2f7 plugin xep-0277: fixed bad data check diff -r ce3607b7198d -r f1a3db8ee04a src/plugins/plugin_xep_0277.py --- a/src/plugins/plugin_xep_0277.py Thu Apr 07 23:40:33 2011 +0200 +++ b/src/plugins/plugin_xep_0277.py Sat Apr 09 13:17:31 2011 +0200 @@ -133,7 +133,7 @@ error(_("Microblog data must contain at least 'content' key")) return 3 content = data['content'] - if not content.has_key("content"): + if not content: error(_("Microblog data's content value must not be empty")) return 3 item = self.data2entry(data, profile)