diff --git a/txupnp/gateway.py b/txupnp/gateway.py index d1423fd..c55cb94 100644 --- a/txupnp/gateway.py +++ b/txupnp/gateway.py @@ -82,8 +82,10 @@ class Gateway(object): def discover_services(self): log.info("querying %s", self.location) response = yield treq.get(self.location) - response_xml = yield response.text() + response_xml = yield response.content() self._device = RootDevice(response_xml) + if not self._device.devices or not self._device.services: + log.error("failed to parse device: \n%s", response_xml) @property def services(self): diff --git a/txupnp/scpd.py b/txupnp/scpd.py index 71ed494..9a4f8ad 100644 --- a/txupnp/scpd.py +++ b/txupnp/scpd.py @@ -155,6 +155,7 @@ class SCPDCommandRunner(object): @staticmethod def _soap_function_info(action_dict): if not action_dict.get('argumentList'): + log.warning("don't know how to handle argument list: %s", action_dict) return ( action_dict['name'], [],