From 24cdd88415f8ca17b34197647886d048f5bacdd6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 13 Apr 2014 22:56:43 +0200 Subject: [PATCH] Fix weird 'no such command' message --- TODO | 1 - qutebrowser/commands/parsers.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index 812a88430..c04939268 100644 --- a/TODO +++ b/TODO @@ -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 ============== diff --git a/qutebrowser/commands/parsers.py b/qutebrowser/commands/parsers.py index 5a8488e2e..5171ebcf1 100644 --- a/qutebrowser/commands/parsers.py +++ b/qutebrowser/commands/parsers.py @@ -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 = []