Merge pull request #2940 from InspectorCaracal/InspectorCaracal-patch-1

Fix formatting on command suggestions
This commit is contained in:
Griatch 2022-10-19 22:36:02 +02:00 committed by GitHub
commit 11cb610faf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -748,7 +748,7 @@ def cmdhandler(
)
if suggestions:
sysarg += _(" Maybe you meant {command}?").format(
command=utils.list_to_string(suggestions, _("or"), addquote=True)
command=utils.list_to_string(suggestions, endsep=_("or"), addquote=True)
)
else:
sysarg += _(' Type "help" for help.')