sane_ssdp: fix get_ips_from_location return value on failure

This commit is contained in:
Colin 2023-06-12 20:11:02 +00:00
parent fdf85156bc
commit 21e0c0d00f

View File

@ -73,7 +73,7 @@ def get_ips_from_location(location: str):
res = subprocess.run(cmd, capture_output=True)
if res.returncode != 0:
logger.info(f"get_wan_from_location failed: {cmd!r}\n{res.stderr}")
return None
return None, None
status = res.stdout.decode("utf-8")
logger.debug(f"got status: {status}")