Skip to content

Commit 17620d6

Browse files
authored
Fix minor issue in demo.py
Some bleak devices can have a None name causing crashes in the demo.
1 parent 7b0a1c2 commit 17620d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godice/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def filter_godice_devices(dev_advdata_tuples):
5858
return [
5959
(dev, adv_data)
6060
for dev, adv_data in dev_advdata_tuples
61-
if dev.name.startswith("GoDice")
61+
if (dev.name and dev.name.startswith("GoDice"))
6262
]
6363

6464

0 commit comments

Comments
 (0)