Fix weird 'no such command' message

This commit is contained in:
Florian Bruhin 2014-04-13 22:56:43 +02:00
parent aa88125710
commit 24cdd88415
2 changed files with 1 additions and 2 deletions

1
TODO
View File

@ -10,7 +10,6 @@ All kind of FIXMEs
Weird font rendering
https://bugreports.qt-project.org/browse/QTBUG-20973
https://bugreports.qt-project.org/browse/QTBUG-21036
Weird "no such command" message
Major features
==============

View File

@ -144,7 +144,7 @@ class CommandParser:
try:
cmd = cmdutils.cmd_dict[cmdstr]
except KeyError:
raise NoSuchCommandError("Command {} not found.".format(cmdstr))
raise NoSuchCommandError(cmdstr)
if len(parts) == 1:
args = []