plugin XEP-0060: fixed traceback if service was None

This commit is contained in:
Goffi 2016-03-10 17:50:17 +01:00
commit 27cd8412d5

View file

@ -320,7 +320,7 @@ class Edit(base.CommandBase, BlogCommon):
try:
mb_data = self.host.bridge.mbGet('', '', 1, [], {}, self.profile)[0][0]
except Exception as e:
self.disp(u"Error while retrieving last comment: {}".format(e))
self.disp(u"Error while retrieving last item: {}".format(e))
self.host.quit(1)
content = mb_data['content_xhtml']