diff options
author | 2022-10-25 10:41:27 -0400 | |
---|---|---|
committer | 2022-10-25 10:41:27 -0400 | |
commit | c0e9c54af1cd0d8f2c24bd5f3a1f944c96ab29d0 (patch) | |
tree | 9b1e656ed17ee3150d9bf6d759a309d932569824 | |
parent | Update tests for new single string format (diff) |
Parse all words instead of breaking
Co-authored-by: ChrisJL <[email protected]>
-rw-r--r-- | bot/exts/info/information.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 73afa3309..61ed63771 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -549,9 +549,8 @@ class Information(Cog): try: rule_numbers.append(int(word)) except ValueError: - if (kw := word.lower()) not in keyword_to_rule_number: - break - keywords.append(kw) + if (kw := word.lower()) in keyword_to_rule_number: + keywords.append(kw) if not rule_numbers and not keywords: # Neither rules nor keywords were submitted. Return the default description. |