From d32a0c30c6e1ba9b4f21ca8594e3413e78181348 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 8 Oct 2014 07:40:53 +0200 Subject: [PATCH] command: Remove unneeded has_count check. --- qutebrowser/commands/command.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 62ded4c00..6db152c22 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -323,9 +323,6 @@ class Command: args: The positional argument list. Gets modified directly. kwargs: The keyword argument dict. Gets modified directly. """ - if not self.has_count: - raise TypeError("{}: count argument given with a command which " - "does not support count!".format(self.name)) if param.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD: if self._count is not None: args.append(self._count)