def delete_honor(): try: honor_id = request.form.get('honor_id') msg = honor_server.delete_honor(honor_id) return msg except: return u'FAIL'
def delete_honor(): try: honor_id = request.form.get('honor_id') msg = honor_server.delete_honor(honor_id) return msg except: current_app.logger.error(traceback.format_exc()) return u'FAIL'