Skip to content

Commit d272686

Browse files
committed
isinstance str
1 parent 3ddef7d commit d272686

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

discord/ui/select.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ def _handle_default_values(
262262
if isinstance(dv, SelectDefaultValue):
263263
ret.append(dv)
264264
continue
265+
if isinstance(dv, str):
266+
# this should not be here anyways, but guarding it
267+
continue
268+
265269
ret.append(SelectDefaultValue._handle_model(dv, select_type))
266270

267271
return ret

0 commit comments

Comments
 (0)