Skip to content

Commit 94b2d27

Browse files
Fix string type evaluation
1 parent 9119c4f commit 94b2d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ async def _discover_dice_async():
493493

494494
# Iterating through found devices
495495
for d in devices:
496-
if type(d.name) is str:
496+
if isinstance(d.name, str):
497497
# Filtering only GoDice
498498
if d.name.startswith("GoDice"):
499499
dice_devices.append(d)

0 commit comments

Comments
 (0)