diff --git a/src/plugins/plugin_xep_0163.py b/src/plugins/plugin_xep_0163.py index 1f44c107..de535981 100755 --- a/src/plugins/plugin_xep_0163.py +++ b/src/plugins/plugin_xep_0163.py @@ -101,6 +101,9 @@ class XEP_0163(): return self.pep_out_cb[event_type](data, profile) def userMoodCB(self, itemsEvent, profile): + if not itemsEvent.items: + debug(_("No item found")) + return try: mood_elem = filter(lambda x:x.name == "mood", itemsEvent.items[0].children)[0] except KeyError: