diff --git a/txupnp/scpd.py b/txupnp/scpd.py index 486e6ec..71ed494 100644 --- a/txupnp/scpd.py +++ b/txupnp/scpd.py @@ -86,6 +86,8 @@ class _SCPDCommand(object): ) xml_response = yield response.content() response = self.extract_response(self.extract_body(xml_response)) + if not response: + log.error("empty response to %s\n%s", self.method, xml_response) defer.returnValue(response) @staticmethod diff --git a/txupnp/util.py b/txupnp/util.py index c032252..95e9c72 100644 --- a/txupnp/util.py +++ b/txupnp/util.py @@ -49,15 +49,6 @@ def get_lan_info(): return iface_name, gateway_address, lan_addr -def find_inner_service_info(service, name): - if isinstance(service, dict): - return service - for s in service: - if name == s['serviceType']: - return s - raise IndexError(name) - - def _return_types(*types): def _return_types_wrapper(fn): @functools.wraps(fn)