This commit is contained in:
Jack Robison 2018-07-28 23:38:58 -04:00
parent 87a663d347
commit 73ef4e6adc
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 2 additions and 9 deletions

View file

@ -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

View file

@ -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)