def _get_enabled_provider(provider_id):
 enabled_provider = provider.Registry.get(provider_id)
 if (not enabled_provider):
  raise ValueError(('Provider %s not enabled' % provider_id))
 return enabled_provider

def _get_enabled_provider ( provider_id ) : enabled_provider = provider . Registry . get ( provider_id ) if ( not enabled_provider ) : raise ValueError ( ( 'Provider %s not enabled' % provider_id ) ) return enabled_provider
gets an enabled provider by its provider_id member or throws .