debug
This commit is contained in:
parent
87a663d347
commit
73ef4e6adc
2 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue