Skip to content

Commit

Permalink
filter out NoneType BLE from Windows bleak
Browse files Browse the repository at this point in the history
  • Loading branch information
bri3d committed May 19, 2022
1 parent bf637a5 commit d6b6b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VW_Flash_GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,8 @@ def ble_scan_callback(self, interfaces):
self.panel.interfaces += interfaces
dialog_interfaces = []
for i in range(len(self.panel.interfaces)):
dialog_interfaces.append(self.panel.interfaces[i][0])
if(self.panel.interfaces[i][0] is not None):
dialog_interfaces.append(self.panel.interfaces[i][0])
dlg = wx.SingleChoiceDialog(
self, "Select an Interface", "Select an interface", dialog_interfaces
)
Expand Down

0 comments on commit d6b6b38

Please sign in to comment.