def onSave(self, sender):
        html = self.editor.getHTML()
        self.saveTemplateText(html)
This decorator wraps a method to catch any exceptions.
dataset/ETHPy150Open anandology/pyjamas/addons/TemplatePanel.py/TemplatePanel.onSave--crossover with--dataset/ETHPy150Open openstack/solum/solum/common/exception.py/wrap_exception