def _save_and_restart(plugin, title=None):
 try:
  plugin.save(title)
  plugin.restart()
  return True
 except le_errors.Error as error:
  logger.error('Plugin failed to save and restart server:')
  logger.exception(error)
  return False

def _save_and_restart ( plugin , title = None ) : try : plugin . save ( title ) plugin . restart ( ) return True except le_errors . Error as error : logger . error ( 'Plugin failed to save and restart server:' ) logger . exception ( error ) return False
saves and restart the plugin .