debug
This commit is contained in:
parent
73ef4e6adc
commit
bf9e4a90d2
2 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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'],
|
||||
[],
|
||||
|
|
Loading…
Reference in a new issue