Skip to content

Commit e7ba6e3

Browse files
Merge pull request #1 from luciengaitskell/fix/str-eval
Fix string type evaluation for macOS
2 parents 9119c4f + 94b2d27 commit e7ba6e3

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)