Skip to content

Commit fa65c47

Browse files
committed
change: Exception ~> ValueError
Changed: - Only catch ValueError (instead of all exceptions) when parsing thread_min_characters config as an integer.
1 parent ab0071b commit fa65c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ async def create(
14121412
min_chars = 0
14131413
try:
14141414
min_chars = int(min_chars)
1415-
except Exception:
1415+
except ValueError:
14161416
min_chars = 0
14171417
if min_chars > 0 and message is not None and message.content is not None:
14181418
if len(message.content.strip()) < min_chars:

0 commit comments

Comments
 (0)