fix issue with help command/categories

This commit is contained in:
Abigail G
2021-04-12 18:58:10 -04:00
parent c3f002a9df
commit abf79b844e
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Issue where `?help` might not work for all people.
## [2.7.1] - 2021-04-12
+2 -1
View File
@@ -50,7 +50,8 @@ class QrmHelpCommand(commands.HelpCommand):
ret.sort(key=lambda c: c.__original_kwargs__["category"].name)
for cat in cmn.BoltCats:
ret += sorted(bolt_cmds[cat], key=lambda c: c.name)
if cat in bolt_cmds:
ret += sorted(bolt_cmds[cat], key=lambda c: c.name)
return ret