Fix weird 'no such command' message
This commit is contained in:
parent
aa88125710
commit
24cdd88415
1
TODO
1
TODO
@ -10,7 +10,6 @@ All kind of FIXMEs
|
|||||||
Weird font rendering
|
Weird font rendering
|
||||||
https://bugreports.qt-project.org/browse/QTBUG-20973
|
https://bugreports.qt-project.org/browse/QTBUG-20973
|
||||||
https://bugreports.qt-project.org/browse/QTBUG-21036
|
https://bugreports.qt-project.org/browse/QTBUG-21036
|
||||||
Weird "no such command" message
|
|
||||||
|
|
||||||
Major features
|
Major features
|
||||||
==============
|
==============
|
||||||
|
@ -144,7 +144,7 @@ class CommandParser:
|
|||||||
try:
|
try:
|
||||||
cmd = cmdutils.cmd_dict[cmdstr]
|
cmd = cmdutils.cmd_dict[cmdstr]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise NoSuchCommandError("Command {} not found.".format(cmdstr))
|
raise NoSuchCommandError(cmdstr)
|
||||||
|
|
||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
args = []
|
args = []
|
||||||
|
Loading…
Reference in New Issue
Block a user