changeset 309:f1a3db8ee04a

plugin xep-0277: fixed bad data check
author Goffi <goffi@goffi.org>
date Sat, 09 Apr 2011 13:17:31 +0200
parents ce3607b7198d
children 53adec87d1d7
files src/plugins/plugin_xep_0277.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)