From ec9a2b02eac01a41098b6de4cc01d1de17b26c59 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 23 Mar 2018 17:51:45 +0200 Subject: [PATCH] Verify mDNS devices before dumping // Issue #1381 --- platformio/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platformio/util.py b/platformio/util.py index 09f5e52e..c0adb874 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -530,9 +530,10 @@ def get_mdns_services(): for service in mdns.get_services(): properties = None try: - assert str(service.properties) + if service.properties: + json.dumps(service.properties) properties = service.properties - except (AssertionError, UnicodeError): + except UnicodeDecodeError: pass items.append({