From 73ef4e6adce5a0cda14cc034241df4cc45a049c9 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sat, 28 Jul 2018 23:38:58 -0400 Subject: [PATCH] debug --- txupnp/scpd.py | 2 ++ txupnp/util.py | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) 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)