We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eddea09 + 4206599 commit c0d9c6aCopy full SHA for c0d9c6a
BlocklyServer.py
@@ -69,9 +69,11 @@ def ports(self):
69
filtered_ports = []
70
for port in ports:
71
self.logger.debug('Port %s discovered.', port)
72
+ # Filter out Bluetooth ports; they are risky to open and scan
73
if ' bt ' not in port.lower() and 'bluetooth' not in port.lower():
74
filtered_ports.append(port)
- self.logger.debug("Port %2 appended to list.", port)
75
+ else:
76
+ self.logger.debug("Port %s filtered from the list.", port)
77
return filtered_ports
78
else:
79
# No useable ports detected. Need to determine how the browser
0 commit comments