plugin XEP-0060: fixed traceback if service was None
This commit is contained in:
parent
c4ac825c8f
commit
27cd8412d5
1 changed files with 6 additions and 4 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in a new issue