twitcher/api.py
def get_service_by_url(self, url):
        """
        Implementation of :meth:`twitcher.api.IRegistry.get_service_by_url`.
        """
        try:
            service = self.store.fetch_by_url(url=url)
        except Exception:
            LOGGER.error('Could not get service with url %s', url)
            return {}
        else:
            return service.params
def get_service_by_url(self, url):
        """
        Implementation of :meth:`twitcher.api.IRegistry.get_service_by_url`.
        """
        try:
            service = self.store.fetch_by_url(url=url)
        except Exception:
            LOGGER.error('Could not get service with url %s', url)
            return {}
        else:
            return service.params
def get_service_by_url ( self , url ) : try : service = self . store . fetch_by_url ( url = url ) except Exception : LOGGER . error ( 'Could not get service with url %s' , url ) return { } else : return service . params
Implementation of :meth:`twitcher.api.IRegistry.get_service_by_url`.
Implementation of : meth : twitcher . api . IRegistry . get_service_by_url .