Skip to content

Commit c0d9c6a

Browse files
authored
Merge pull request #85 from PropGit/demo
[Issue #57] Fixed server string format error. No more annoying Value…
2 parents eddea09 + 4206599 commit c0d9c6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BlocklyServer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ def ports(self):
6969
filtered_ports = []
7070
for port in ports:
7171
self.logger.debug('Port %s discovered.', port)
72+
# Filter out Bluetooth ports; they are risky to open and scan
7273
if ' bt ' not in port.lower() and 'bluetooth' not in port.lower():
7374
filtered_ports.append(port)
74-
self.logger.debug("Port %2 appended to list.", port)
75+
else:
76+
self.logger.debug("Port %s filtered from the list.", port)
7577
return filtered_ports
7678
else:
7779
# No useable ports detected. Need to determine how the browser

0 commit comments

Comments
 (0)