def validate_plugin(plugin):
 if (plugin not in plugin_manager.all_plugins.keys()):
  raise FlaskBBCLIError('Plugin {} not found.'.format(plugin), fg='red')
 return True

def validate_plugin ( plugin ) : if ( plugin not in plugin_manager . all_plugins . keys ( ) ) : raise FlaskBBCLIError ( 'Plugin {} not found.' . format ( plugin ) , fg = 'red' ) return True
checks if a plugin is installed .