Skip to content

Commit

Permalink
Merge pull request #85 from PropGit/demo
Browse files Browse the repository at this point in the history
[Issue #57] Fixed server string format error.  No more annoying Value…
  • Loading branch information
paragitadmin authored Mar 24, 2017
2 parents eddea09 + 4206599 commit c0d9c6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BlocklyServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ def ports(self):
filtered_ports = []
for port in ports:
self.logger.debug('Port %s discovered.', port)
# Filter out Bluetooth ports; they are risky to open and scan
if ' bt ' not in port.lower() and 'bluetooth' not in port.lower():
filtered_ports.append(port)
self.logger.debug("Port %2 appended to list.", port)
else:
self.logger.debug("Port %s filtered from the list.", port)
return filtered_ports
else:
# No useable ports detected. Need to determine how the browser
Expand Down

0 comments on commit c0d9c6a

Please sign in to comment.