mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Verify mDNS devices before dumping // Issue #1381
This commit is contained in:
@ -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({
|
||||
|
Reference in New Issue
Block a user