Skip to content

Commit 4dd032d

Browse files
authored
Add None check to wait_for_component (#247)
1 parent 0ba0d02 commit 4dd032d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/utils/manage_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ async def wait_for_component(
302302
custom_ids = list(get_components_ids(components)) if components else None
303303

304304
# automatically convert improper custom_ids
305-
if not all(isinstance(x, str) for x in custom_ids):
305+
if custom_ids and not all(isinstance(x, str) for x in custom_ids):
306306
custom_ids = [str(i) for i in custom_ids]
307307
logger.warning(
308308
"Custom_ids have been automatically converted to a list of strings. Please use lists of strings in future.\n"

0 commit comments

Comments
 (0)